containers-knot/suttynsd.sh

19 lines
264 B
Bash
Raw Normal View History

2023-11-23 20:46:50 +00:00
#!/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