mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
26 lines
440 B
Text
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 $?
|
|
}
|
|
|