19 lines
264 B
Bash
19 lines
264 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
pid=/tmp/suttyns.pid
|
||
|
|
||
|
case $1 in
|
||
|
start)
|
||
|
test -f $pid && exit 0
|
||
|
|
||
|
daemonize -p $pid -u nobody /usr/local/bin/syslogize /usr/bin/suttyns $SUTTYNS_FLAGS
|
||
|
;;
|
||
|
stop)
|
||
|
test -f $pid || exit 0
|
||
|
|
||
|
cat $pid | xargs kill
|
||
|
rm $pid
|
||
|
|
||
|
;;
|
||
|
esac
|