mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
From CLI help: -D Control how daemonize is done: -D..do not fork (almost) anyway; -DD..do not daemonize creator; -DDD..daemonize (default) We don't want '-D' since it does not allow to bind to multiple interfaces/ip addresses, while '-DD' keep the master process in foreground and allows to fork.
16 lines
340 B
Bash
16 lines
340 B
Bash
#!/sbin/openrc-run
|
|
|
|
command="/usr/sbin/kamailio"
|
|
command_args="$KAMAILIO_OPTS -DD -u ${KAMAILIO_USER:-kamailio} -g ${KAMAILIO_GROUP:-kamailio}"
|
|
command_background="true"
|
|
pidfile="/run/kamailio.pid"
|
|
|
|
depend() {
|
|
need net
|
|
after firewall mariadb postgresql
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath -d -o kamailio:kamailio /var/run/kamailio
|
|
kamailio -c
|
|
}
|