blob: 62ea407748f8be6ec7b7ab207ec111520153578a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/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
|