diff options
author | Michael Mason <ms13sp@gmail.com> | 2009-08-07 20:59:53 +0000 |
---|---|---|
committer | Michael Mason <ms13sp@gmail.com> | 2009-08-07 20:59:53 +0000 |
commit | 6443b3a9eea415eee00747e824b858e813e3ca9c (patch) | |
tree | 8f1969291665be0fcb7141d9d891b06aef5e1a96 /unstable/kamailio/kamailio.initd | |
parent | ec8a8d7e534e0817b9d5c3d5bdc7c931d427d245 (diff) | |
download | aports-6443b3a9eea415eee00747e824b858e813e3ca9c.tar.bz2 aports-6443b3a9eea415eee00747e824b858e813e3ca9c.tar.xz |
unstable/kamailio Added initd and install scripts
Diffstat (limited to 'unstable/kamailio/kamailio.initd')
-rw-r--r-- | unstable/kamailio/kamailio.initd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/unstable/kamailio/kamailio.initd b/unstable/kamailio/kamailio.initd new file mode 100644 index 000000000..aaea95b3e --- /dev/null +++ b/unstable/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 $? +} |