3 # skeleton Example file to build /etc/init.d scripts.
5 # Version: @(#) /etc/init.d/mcserv 07/10/2000
7 # Author: Tomasz K³oczko, <kloczek@rudy.mif.pg.gda.pl>
8 # Michele Marziani <marziani@fe.infn.it>
9 # Preston Brown <pbrown@redhat.com>
12 # description: The Midnight Commander server allows users on remote machines \
13 # to use the Midnight Commander file manager to manipulate their \
14 # files on the machine running the server. The server \
15 # authenticates the user through PAM, which by default requires \
16 # a username/password combination before allowing access.
19 # Source function library.
20 .
/etc
/init.d
/functions
27 echo -n $
"Starting $prog: "
28 daemon
/usr
/bin
/mcserv
-d
30 touch /var
/lock
/subsys
/mcserv
35 echo -n $
"Stopping $prog: "
38 rm -f /var
/lock
/subsys
/mcserv
42 # See how we were called.
55 if [ -f /var
/lock
/subsys
/mcserv
]; then
64 echo $
"Usage: $0 {start|stop|status|restart|reload|condrestart}"