mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
32 lines
568 B
Text
32 lines
568 B
Text
#!/sbin/openrc-run
|
|
|
|
name="SvxLink Server"
|
|
pname="svxlink"
|
|
command="/usr/bin/$pname"
|
|
|
|
|
|
POPTS="--daemon \
|
|
${RUNASUSER:+--runasuser=$RUNASUSER} \
|
|
${PIDFILE:+--pidfile=$PIDFILE} \
|
|
${LOGFILE:+--logfile=$LOGFILE} \
|
|
${CFGFILE:+--config=$CFGFILE}"
|
|
|
|
depend() {
|
|
need localmount
|
|
use net
|
|
after bootmisc
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting $pname"
|
|
export $ENV
|
|
start-stop-daemon --start --pidfile $PIDFILE --exec $command -- $POPTS
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping $name"
|
|
start-stop-daemon --stop --quiet --pidfile "$PIDFILE"
|
|
eend $? "Failed to stop $name"
|
|
}
|
|
|