mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* lib/mcserv.init: Update from Red Hat package.
* lib/mcserv.pamd: Likewise.
This commit is contained in:
parent
0156a69279
commit
b54612721c
@ -1,5 +1,8 @@
|
|||||||
2002-08-25 Pavel Roskin <proski@gnu.org>
|
2002-08-25 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* lib/mcserv.init: Update from Red Hat package.
|
||||||
|
* lib/mcserv.pamd: Likewise.
|
||||||
|
|
||||||
* configure.in: Fix interpretation of the iconv test result.
|
* configure.in: Fix interpretation of the iconv test result.
|
||||||
Reported by Pavel Shirshov <pavelsh@mail.ru>
|
Reported by Pavel Shirshov <pavelsh@mail.ru>
|
||||||
|
|
||||||
|
@ -2,10 +2,11 @@
|
|||||||
#
|
#
|
||||||
# skeleton Example file to build /etc/init.d scripts.
|
# skeleton Example file to build /etc/init.d scripts.
|
||||||
#
|
#
|
||||||
# Version: @(#) /etc/init.d/mcserv 09-Apr-1997
|
# Version: @(#) /etc/init.d/mcserv 07/10/2000
|
||||||
#
|
#
|
||||||
# Author: Tomasz K³oczko, <kloczek@rudy.mif.pg.gda.pl>
|
# Author: Tomasz K³oczko, <kloczek@rudy.mif.pg.gda.pl>
|
||||||
# Michele Marziani <marziani@fe.infn.it>
|
# Michele Marziani <marziani@fe.infn.it>
|
||||||
|
# Preston Brown <pbrown@redhat.com>
|
||||||
#
|
#
|
||||||
# chkconfig: - 86 30
|
# chkconfig: - 86 30
|
||||||
# description: The Midnight Commander server allows users on remote machines \
|
# description: The Midnight Commander server allows users on remote machines \
|
||||||
@ -16,37 +17,52 @@
|
|||||||
# processname: mcserv
|
# processname: mcserv
|
||||||
|
|
||||||
# Source function library.
|
# Source function library.
|
||||||
. /etc/rc.d/init.d/functions
|
. /etc/init.d/functions
|
||||||
|
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
|
|
||||||
|
prog="mcserv"
|
||||||
|
|
||||||
|
start() {
|
||||||
|
echo -n $"Starting $prog: "
|
||||||
|
daemon /usr/bin/mcserv -d
|
||||||
|
RETVAL=$?
|
||||||
|
touch /var/lock/subsys/mcserv
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
|
stop() {
|
||||||
|
echo -n $"Stopping $prog: "
|
||||||
|
killproc mcserv
|
||||||
|
RETVAL=$?
|
||||||
|
rm -f /var/lock/subsys/mcserv
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
# See how we were called.
|
# See how we were called.
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo -n "Starting mcserv services: "
|
start
|
||||||
daemon /usr/bin/mcserv -d
|
|
||||||
RETVAL=$?
|
|
||||||
touch /var/lock/subsys/mcserv
|
|
||||||
echo
|
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
status mcserv
|
status mcserv
|
||||||
;;
|
;;
|
||||||
restart|reload)
|
restart|reload)
|
||||||
$0 stop
|
stop
|
||||||
$0 start
|
start
|
||||||
;;
|
;;
|
||||||
|
condrestart)
|
||||||
|
if [ -f /var/lock/subsys/mcserv ]; then
|
||||||
|
stop
|
||||||
|
start
|
||||||
|
fi
|
||||||
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo -n "Shutting down mcserv services: "
|
stop
|
||||||
killproc mcserv
|
|
||||||
RETVAL=$?
|
|
||||||
rm -f /var/lock/subsys/mcserv
|
|
||||||
echo
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: mcserv.init {start|stop|status|restart|reload}"
|
echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit $RETVAL
|
exit $RETVAL
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#%PAM-1.0
|
#%PAM-1.0
|
||||||
auth required /lib/security/pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
|
auth required /lib/security/pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
|
||||||
auth required /lib/security/pam_pwdb.so shadow nullok
|
auth required /lib/security/pam_stack.so service=system-auth
|
||||||
auth required /lib/security/pam_shells.so
|
auth required /lib/security/pam_shells.so
|
||||||
account required /lib/security/pam_pwdb.so
|
account required /lib/security/pam_stack.so service=system-auth
|
||||||
session required /lib/security/pam_pwdb.so
|
session required /lib/security/pam_stack.so service=system-auth
|
||||||
|
Loading…
Reference in New Issue
Block a user