0

Add openrc init script

This commit is contained in:
eleksir
2022-09-26 00:40:06 +03:00
parent 2a21d9d132
commit 020c994549

17
contrib/joyproxy.openrc Normal file
View File

@@ -0,0 +1,17 @@
#!/sbin/openrc-run
name="$SVCNAME"
command="/var/lib/$SVCNAME/$SVCNAME"
supervisor="supervise-daemon"
pidfile="/run/$SVCNAME/$SVCNAME.pid"
command_user=nobody:nogroup
depend() {
need net
use dns
}
start_pre() {
mkdir -p /run/$SVCNAME
chown -R nobody:nogroup /run/$SVCNAME
}