From 96025eb035a7f510c30a01b923d644ae56479bc7 Mon Sep 17 00:00:00 2001 From: Alan Hicks Date: Tue, 11 May 2010 20:02:05 +0200 Subject: system/pommed: Added to 12.0 repository --- system/pommed/rc.pommed | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 system/pommed/rc.pommed (limited to 'system/pommed/rc.pommed') 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 + -- cgit v1.2.3