mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
edbbdbf3cb
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
24 lines
483 B
Bash
24 lines
483 B
Bash
#!/bin/sh
|
|
|
|
# Read alternative ARGS line from /etc/default/isnsd.
|
|
test -f /etc/default/isnsd && source /etc/default/isnsd
|
|
|
|
case "$1" in
|
|
start)
|
|
echo "starting isnsd"
|
|
/usr/sbin/isnsd $ARGS
|
|
;;
|
|
stop)
|
|
echo "stopping isnsd"
|
|
pkill -F /var/run/isnsd.pid
|
|
;;
|
|
status)
|
|
echo "$(pgrep -c -f /usr/sbin/isnsd) isnsd process(es) running"
|
|
;;
|
|
restart)
|
|
$0 stop; sleep 2; $0 start
|
|
;;
|
|
*)
|
|
echo "usage: $0 {start|stop|status|reload|restart}"
|
|
;;
|
|
esac
|