You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
492 B
25 lines
492 B
4 years ago
|
#!/bin/sh
|
||
|
|
||
|
# Read alternative ARGS line from /etc/default/isnsdd.
|
||
|
test -f /etc/default/isnsdd && source /etc/default/isnsdd
|
||
|
|
||
|
case "$1" in
|
||
|
start)
|
||
|
echo "starting isnsdd"
|
||
|
/usr/sbin/isnsdd $ARGS
|
||
|
;;
|
||
|
stop)
|
||
|
echo "stopping isnsdd"
|
||
|
pkill -F /var/run/isnsdd.pid
|
||
|
;;
|
||
|
status)
|
||
|
echo "$(pgrep -c -f /usr/sbin/isnsdd) isnsdd process(es) running"
|
||
|
;;
|
||
|
restart)
|
||
|
$0 stop; sleep 2; $0 start
|
||
|
;;
|
||
|
*)
|
||
|
echo "usage: $0 {start|stop|status|reload|restart}"
|
||
|
;;
|
||
|
esac
|