diff options
author | Alan Hicks <alan@lizella.net> | 2010-05-11 20:02:05 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 20:02:05 +0200 |
commit | 96025eb035a7f510c30a01b923d644ae56479bc7 (patch) | |
tree | 376901f451d6f51611d7a543228323f817812bd1 /system/pommed/rc.pommed | |
parent | 371a877069a62cab6ea2aabab8a22d3fea0a2b3a (diff) |
system/pommed: Added to 12.0 repository
Diffstat (limited to 'system/pommed/rc.pommed')
-rw-r--r-- | system/pommed/rc.pommed | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/system/pommed/rc.pommed b/system/pommed/rc.pommed new file mode 100644 index 0000000000000..def1086f30d5b --- /dev/null +++ b/system/pommed/rc.pommed @@ -0,0 +1,32 @@ +#!/bin/sh + +# Start/stop/restart the pommed service: + +pommed_start() { + /usr/sbin/pommed +} + +pommed_stop() { + killall pommed +} + +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 + |