summaryrefslogtreecommitdiffstats
path: root/testing/sems/sems.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-04-19 06:52:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-04-19 09:18:46 +0000
commitc99eef8cb1fde2cba4768857bb894610b30fd746 (patch)
tree7a1036476b533638cfc260f2b9b96fcc991fc61f /testing/sems/sems.initd
parentd74a067929c230b551de365a59a3293d94648d62 (diff)
downloadaports-c99eef8cb1fde2cba4768857bb894610b30fd746.tar.bz2
aports-c99eef8cb1fde2cba4768857bb894610b30fd746.tar.xz
main/sems: moved from testing
on request. I think this still needs some work...
Diffstat (limited to 'testing/sems/sems.initd')
-rw-r--r--testing/sems/sems.initd37
1 files changed, 0 insertions, 37 deletions
diff --git a/testing/sems/sems.initd b/testing/sems/sems.initd
deleted file mode 100644
index 0e96f8a21..000000000
--- a/testing/sems/sems.initd
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/sbin/runscript
-# SIP Express Media Server configuration file
-# Follows Gentoo/AlpineLinux standards
-# GPL 2 License - N. Angelacos 2011
-
-CONFDIR="/etc/sems"
-SVC="${SVCNAME#*.}"
-if [ -n "${SVC}" ] && [ "${SVCNAME}" != "sems" ]; then
- SEMSPID="/var/run/sems/${SVC}.pid"
- else
- SEMSPID="/var/run/sems/sems.pid"
- fi
-SEMSCONF="${CONFDIR}/${SVC}.conf"
-daemon=/usr/sbin/sems
-
-depend() {
- need net
- after firewall
-}
-
-start() {
- ebegin "Starting ${SVCNAME}"
- echo $SEMSPID $SEMSCONF
- start-stop-daemon --start --quiet --pidfile $SEMSPID --exec $daemon \
- -- \
- -u sems \
- -g sems \
- -P $SEMSPID \
- -f $SEMSCONF
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop --quiet --pidfile $SEMSPID
- eend $?
-}