/conf/nfsen/nfsen-init |
---|
0,0 → 1,42 |
#!/bin/sh |
# |
# chkconfig: 345 90 10 |
# description : Init script launching the nfsen service at the startup. |
### BEGIN INIT INFO |
# Provides: nfsen |
# Should-Start: ntp |
# Should-Stop: |
# Default-Start: 3 4 5 |
# Description: Init script launching the nfsen service at the startup. |
### END INIT INFO |
. /etc/init.d/functions |
# Include nfcapd defaults if available |
if [ -f /etc/sysconfig/nfsen ] ; then |
. /etc/sysconfig/nfsen |
fi |
case "$1" in |
start) |
/usr/bin/nfsen start |
;; |
stop) |
/usr/bin/nfsen stop |
;; |
restart) |
/usr/bin/nfsen restart |
;; |
status) |
/usr/bin/nfsen status |
exit 4 |
;; |
*) |
gprintf "Usage: %s {start|stop|status|restart}\n" "$N" |
;; |
esac |
exit 0 |