Apr
23
Quick&Dirty:
#!/bin/bash
USER=michael
GROUP=michael
PIDFILE=/var/run/smuxi.pid
case "${1:-''}" in
'start')
start-stop-daemon -S -c $USER -g $GROUP --make-pidfile --pidfile $PIDFILE --background --startas /usr/bin/smuxi-server -v
;;
'stop')
start-stop-daemon -K --pidfile $PIDFILE -v
;;
*)
echo "Usage: $SELF start|stop"
exit 1
;;
esac
