mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 04:35:13 +03:00
27 lines
476 B
Bash
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"
|
|
}
|
|
|