diff options
| author | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-03 07:41:11 +0000 |
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-03 07:41:11 +0000 |
| commit | 09ce0508afe6568cf580f53fb9952963125fff43 (patch) | |
| tree | be336c26f16f7fd1e5c5454738c9332da34fb2d1 /testing/opensips/opensips.initd | |
| parent | 9ad548df8aa2a860ca311453ed3d6a98962f32f5 (diff) | |
| download | aports-09ce0508afe6568cf580f53fb9952963125fff43.tar.bz2 aports-09ce0508afe6568cf580f53fb9952963125fff43.tar.xz | |
Revert "testing/*: remove from stable branch"
This reverts commit 9ad548df8aa2a860ca311453ed3d6a98962f32f5.
I'll delete them one by one.
Diffstat (limited to 'testing/opensips/opensips.initd')
| -rw-r--r-- | testing/opensips/opensips.initd | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/opensips/opensips.initd b/testing/opensips/opensips.initd new file mode 100644 index 0000000000..09c03fd5d1 --- /dev/null +++ b/testing/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 $? +} + |
