diff options
| author | Michael Mason <ms13sp@gmail.com> | 2009-05-28 13:32:41 +0000 |
|---|---|---|
| committer | Michael Mason <ms13sp@gmail.com> | 2009-05-28 13:32:41 +0000 |
| commit | 1e2f0b801eee6597e0ab8ffeecb740ef01abb45d (patch) | |
| tree | a4dcd60d3c11ddc72c25ef269df6c1a18ee04951 /testing/opensips/opensips.initd | |
| parent | 6a4d7e81f3565b5c531abedf0b81d988391f5e92 (diff) | |
| parent | ed1b3209b6c34161e0f7ca150d99655da23214c0 (diff) | |
| download | aports-1e2f0b801eee6597e0ab8ffeecb740ef01abb45d.tar.bz2 aports-1e2f0b801eee6597e0ab8ffeecb740ef01abb45d.tar.xz | |
Merge branch 'master' of git://git.alpinelinux.org/aports
Diffstat (limited to 'testing/opensips/opensips.initd')
| -rw-r--r-- | testing/opensips/opensips.initd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/opensips/opensips.initd b/testing/opensips/opensips.initd new file mode 100644 index 0000000000..5805908f05 --- /dev/null +++ b/testing/opensips/opensips.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript + +daemon=/usr/sbin/opensips +pidfile=/var/run/opensips/opensips.pid + +depend() { + need net +} + +start() { + ebegin "Starting OpenSIPS" + start-stop-daemon --start --quiet --pidfile $pidfile --exec $daemon \ + -- \ + -u ${OPENSIPS_USER:-opensips} \ + -g ${OPENSIPS_GROUP:-opensips} \ + -P $pidfile + eend $? +} + +stop() { + ebegin "Stopping OpenSIPS" + start-stop-daemon --stop --quiet --pidfile $pidfile + eend $? +} + |
