File: mcserv.init

package info (click to toggle)
mc 4.1.35-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 6,924 kB
  • ctags: 9,665
  • sloc: ansic: 84,273; tcl: 1,779; makefile: 1,266; sh: 864; perl: 262; awk: 148; sed: 93; csh: 1
file content (48 lines) | stat: -rw-r--r-- 1,171 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
#
# skeleton      Example file to build /etc/init.d scripts.
#
# Version:      @(#) /etc/init.d/mcserv  09-Apr-1997
#
# Author:       Tomasz Koczko, <kloczek@rudy.mif.pg.gda.pl>
#               Michele Marziani <marziani@fe.infn.it>
#
# chkconfig: - 86 30
# description: The Midnight Commander server allows users on remote machines \
#	       to use the Midnight Commander file manager to manipulate their \
#	       files on the machine running the server. The server  \
#              authenticates the user through PAM, which by default requires \
#              a username/password combination before allowing access.
# processname: mcserv

# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
        echo -n "Starting mcserv services: "
	daemon /usr/bin/mcserv -d
	touch /var/lock/subsys/mcserv
	echo
	;;
  status)
        status mcserv
	;;
  restart|reload)
        $0 stop
	$0 start
        ;;
  stop)
        echo -n "Shutting down mcserv services: "
	killproc mcserv
	rm -f /var/lock/subsys/mcserv
	echo
	;;
  *)
	echo "Usage: mcserv.init {start|stop|status|restart|reload}"
	exit 1
esac

exit 0