1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 04:35:13 +03:00
aports/testing/aprx/aprx.initd
Milan P. Stanić 7106a097e1 testing/aprx: new aport
http://thelifeofkenneth.com/aprx/
aprx digipeater and iGate
2020-07-07 19:29:08 +00:00

27 lines
476 B
Bash

#!/sbin/openrc-run
# Sample init.d file for alpine linux.
name=aprx
command="/usr/sbin/$name"
command_args="$DAEMON_OPTS"
command_background="yes"
pidfile="/run/$name.pid"
depend() {
need net
after firewall
}
start() {
ebegin "Starting $pname"
start-stop-daemon --start --pidfile $pidfile --exec $command
eend $?
}
stop() {
ebegin "Stopping $name"
start-stop-daemon --stop --quiet --signal TERM --oknodo --pidfile $pidfile
eend $? "Failed to stop $name"
}