Subversion Repositories ALCASAR

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
1154 crox53 1
#!/bin/sh
2
#
3
# chkconfig: 345 90 10
4
# description : Init script launching the nfsen service at the startup.
5
 
6
### BEGIN INIT INFO
7
# Provides: nfsen
8
# Should-Start: ntp
9
# Should-Stop:
10
# Default-Start: 3 4 5
11
# Description: Init script launching the nfsen service at the startup.
12
### END INIT INFO
13
 
14
. /etc/init.d/functions
15
 
16
# Include nfcapd defaults if available
17
if [ -f /etc/sysconfig/nfsen ] ; then
18
	. /etc/sysconfig/nfsen
19
fi
20
 
21
case "$1" in
22
	start) 
23
		/usr/bin/nfsen start
24
		;;
25
 
26
	stop)
27
		/usr/bin/nfsen stop
28
		;;
29
 
30
	restart)
31
		/usr/bin/nfsen restart
32
		;;
33
	status)
34
		/usr/bin/nfsen status
35
		exit 4
36
		;;
37
	*)
38
		gprintf "Usage: %s {start|stop|status|restart}\n" "$N"
39
		;;
40
esac
41
 
42
exit 0