summaryrefslogtreecommitdiff
path: root/system/pommed/rc.pommed
diff options
context:
space:
mode:
Diffstat (limited to 'system/pommed/rc.pommed')
-rw-r--r--system/pommed/rc.pommed32
1 files changed, 32 insertions, 0 deletions
diff --git a/system/pommed/rc.pommed b/system/pommed/rc.pommed
new file mode 100644
index 0000000000..def1086f30
--- /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
+