diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2010-06-28 08:51:17 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2010-06-28 08:51:17 +0000 |
commit | 78e13c7934f6f1f69df4a3c6674b390791d2a5da (patch) | |
tree | a287f83aeaa899156c1aee14b04d0c0b44794c9a /testing/sems/sems.initd | |
parent | f7b7bee3e81109a892e43065b6c16cd8c3779502 (diff) | |
download | aports-78e13c7934f6f1f69df4a3c6674b390791d2a5da.tar.bz2 aports-78e13c7934f6f1f69df4a3c6674b390791d2a5da.tar.xz |
testing/sems: upgrade to 1.2.1
Diffstat (limited to 'testing/sems/sems.initd')
-rw-r--r-- | testing/sems/sems.initd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/sems/sems.initd b/testing/sems/sems.initd new file mode 100644 index 000000000..9cf98a185 --- /dev/null +++ b/testing/sems/sems.initd @@ -0,0 +1,27 @@ +#!/sbin/runscript + +daemon=/usr/sbin/sems +pidfile=/var/run/sems/sems.pid +conffile=/etc/sems/sems.conf + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting sems" + start-stop-daemon --start --quiet --pidfile $pidfile --exec $daemon \ + -- \ + -u sems \ + -g sems \ + -P $pidfile \ + -f $conffile + eend $? +} + +stop() { + ebegin "Stopping sems" + start-stop-daemon --stop --quiet --pidfile $pidfile + eend $? +} |