slackbuilds_ponce/system/pommed/rc.pommed
2010-05-13 00:41:25 +02:00

33 lines
400 B
Bash

#!/bin/sh
# Start/stop/restart the pommed service:
pommed_start() {
/usr/sbin/pommed
}
pommed_stop() {
kill $(cat /var/run/pommed.pid) || killall pommed
rm -f /var/run/pommed.pid
}
pommed_restart() {
pommed_stop
sleep 1
pommed_start
}
case "$1" in
'start')
pommed_start
;;
'stop')
pommed_stop
;;
'restart')
pommed_restart
;;
*)
echo "usage $0 start|stop|restart"
esac