diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-10-15 21:04:33 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-10-15 21:04:33 +0200 |
commit | 0d8a6942ac6996a4c31ea4180e21f5d5706e929a (patch) | |
tree | 72ec31061632792874f29f04943d10a0a10eef71 /community/rest-server/rest-server.initd | |
parent | 28150adaf85ebb64ea4668c5fa3e5658e46058e7 (diff) | |
download | aports-0d8a6942ac6996a4c31ea4180e21f5d5706e929a.tar.bz2 aports-0d8a6942ac6996a4c31ea4180e21f5d5706e929a.tar.xz |
community/rest-server: move from testing
Diffstat (limited to 'community/rest-server/rest-server.initd')
-rw-r--r-- | community/rest-server/rest-server.initd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/community/rest-server/rest-server.initd b/community/rest-server/rest-server.initd new file mode 100644 index 0000000000..25745876e3 --- /dev/null +++ b/community/rest-server/rest-server.initd @@ -0,0 +1,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}" +} |