mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
20 lines
332 B
Plaintext
20 lines
332 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
pidfile="/var/run/${SVCNAME}/${SVCNAME}.pid"
|
|
command="/usr/sbin/${SVCNAME}"
|
|
: ${conf_file:="/etc/sniproxy/sniproxy.conf"}
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting $SVCNAME"
|
|
start-stop-daemon --start \
|
|
--quiet --pidfile $pidfile --exec $command \
|
|
-- -c "$conf_file" "$@"
|
|
eend
|
|
}
|
|
|