diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-04 15:39:20 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-04 15:39:20 +0000 |
commit | 4cf3f5dd8a9c4c28f1d4cfcfc9d0fdc6e2e68fbc (patch) | |
tree | c54d73742b18d00115fd540d3b2fafb7f766de4e /unmaintained/opensips/opensips.initd | |
parent | d1adc7e878dfb93233c8115bc639ace3a961a9ed (diff) | |
download | aports-4cf3f5dd8a9c4c28f1d4cfcfc9d0fdc6e2e68fbc.tar.bz2 aports-4cf3f5dd8a9c4c28f1d4cfcfc9d0fdc6e2e68fbc.tar.xz |
unmaintained/opensips: move from testing
Diffstat (limited to 'unmaintained/opensips/opensips.initd')
-rw-r--r-- | unmaintained/opensips/opensips.initd | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/unmaintained/opensips/opensips.initd b/unmaintained/opensips/opensips.initd new file mode 100644 index 0000000000..09c03fd5d1 --- /dev/null +++ b/unmaintained/opensips/opensips.initd @@ -0,0 +1,26 @@ +#!/sbin/runscript + +daemon=/usr/sbin/opensips +pidfile=/var/run/opensips/opensips.pid + +depend() { + need net + after firewall +} + +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 $? +} + |