1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/rest-server/rest-server.initd
2018-10-15 21:04:33 +02:00

18 lines
381 B
Text

#!/sbin/openrc-run
name="rest-server"
command="/usr/bin/$name"
command_args="$REST_SERVER_OPTS --path '${REST_SERVER_PATH}'"
command_background="yes"
command_user="${REST_USER:-restic}"
pidfile="/var/run/$RC_SVCNAME.pid"
depend() {
need net
after firewall
}
start_pre() {
checkpath --directory "${REST_SERVER_PATH}" \
--owner "${REST_USER:-restic}:${REST_GROUP:-restic}"
}