blob: 25745876e3ebbf7e6087a6f03f63d9ad58578767 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/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}"
}
|