diff options
author | Michael Mason <ms13sp@gmail.com> | 2009-08-21 04:02:44 +0000 |
---|---|---|
committer | Michael Mason <ms13sp@gmail.com> | 2009-08-21 04:02:44 +0000 |
commit | 5ecc96ccbafcfc1916d7623a976833fc5d45fc4c (patch) | |
tree | 91a54afb0bf12e3b5766cc93bc68c6faa7c1092c /testing/kamailio/kamailio.initd | |
parent | 80995cc6306c144c76c9b8b9492eda9975b4593c (diff) | |
download | aports-fcolista-5ecc96ccbafcfc1916d7623a976833fc5d45fc4c.tar.bz2 aports-fcolista-5ecc96ccbafcfc1916d7623a976833fc5d45fc4c.tar.xz |
unstable/kamailio moved to testing/kamailio
Diffstat (limited to 'testing/kamailio/kamailio.initd')
-rw-r--r-- | testing/kamailio/kamailio.initd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/kamailio/kamailio.initd b/testing/kamailio/kamailio.initd new file mode 100644 index 0000000000..aaea95b3ee --- /dev/null +++ b/testing/kamailio/kamailio.initd @@ -0,0 +1,24 @@ +#!/sbin/runscript + +daemon=/usr/sbin/kamailio +pidfile=/var/run/kamailio/kamailio.pid + +depend() { + need net +} + +start() { + ebegin "Starting Kamailio" + start-stop-daemon --start --quiet --pidfile $pidfile --exec $daemon \ + -- \ + -u ${KAMAILIO_USER:-opensips} \ + -g ${KAMAILIO_GROUP:-opensips} \ + -P $pidfile + eend $? +} + +stop() { + ebegin "Stopping Kamailio" + start-stop-daemon --stop --quiet --pidfile $pidfile + eend $? +} |