aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sipwise-sems/sems.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-02-07 12:59:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-02-07 13:17:18 +0000
commit20cb4d4965bcb6bc70055e940b61fcac52b758c4 (patch)
tree8eb74fd5655c9cc211a8fcd33636df573cf1122d /testing/sipwise-sems/sems.initd
parenta686c6b9a5a29a9585d1b7fd98c77dd0e84be65f (diff)
downloadaports-20cb4d4965bcb6bc70055e940b61fcac52b758c4.tar.bz2
aports-20cb4d4965bcb6bc70055e940b61fcac52b758c4.tar.xz
testing/sipwise-sems: move to unmaintained
Diffstat (limited to 'testing/sipwise-sems/sems.initd')
-rwxr-xr-xtesting/sipwise-sems/sems.initd48
1 files changed, 0 insertions, 48 deletions
diff --git a/testing/sipwise-sems/sems.initd b/testing/sipwise-sems/sems.initd
deleted file mode 100755
index fda1e8a838..0000000000
--- a/testing/sipwise-sems/sems.initd
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/sbin/openrc-run
-# SIP Express Media Server configuration file
-# Follows Gentoo/AlpineLinux standards
-# GPL 2 License - N. Angelacos 2011
-
-SVC="${SVCNAME#*.}"
-SEMS_CFG_FILE=${SEMS_CFG_FILE:-/etc/sems/${SVC}.conf}
-SEMS_PIDDIR=/var/run/sems
-SEMS_PIDFILE=${SEMS_PIDFILE:-${SEMS_PIDDIR}/${SVC}.pid}
-SEMS_BINARY=${SEMS_BINARY:-/usr/sbin/sems}
-SEMS_USER=${SEMS_USER:-sems}
-SEMS_GROUP=${SEMS_GROUP:-sems}
-
-checkconfig() {
- if [ ! -f "${SEMS_CFG_FILE}" ] ; then
- eerror "You need a "${SEMS_CFG_FILE}" file to run sems"
- return 1;
- fi
-}
-
-
-start() {
- checkconfig || return 1
- ebegin "Starting ${SVCNAME}"
- mkdir -p "${SEMS_PIDDIR}"
- chown ${SEMS_USER}:${SEMS_GROUP} "${SEMS_PIDDIR}"
-
- start-stop-daemon --start --exec "${SEMS_BINARY}" \
- --pidfile "${SEMS_PIDFILE}" \
- --wait ${SEMS_WAIT:-500} \
- -- \
- -f "${SEMS_CFG_FILE}" \
- -P "${SEMS_PIDFILE}" \
- -u "${SEMS_USER}" \
- -g "${SEMS_GROUP}"
- eend $?
-}
-
-stop() {
- if [ "${RC_CMD}" = "restart" ] ; then
- checkconfig || return 1
- fi
-
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop --exec "${SEMS_BINARY}" \
- --pidfile "${SEMS_PIDFILE}" --quiet
- eend $?
-}