1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 03:35:38 +03:00
aports/testing/opensips/opensips.initd
2009-09-16 08:50:06 +00:00

26 lines
440 B
Text

#!/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 $?
}