Better OpenRC script
This commit is contained in:
parent
22cfb7a28e
commit
ceb629a90a
|
@ -1,11 +1,12 @@
|
||||||
#!/sbin/openrc-run
|
#!/sbin/openrc-run
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
need net
|
||||||
|
}
|
||||||
|
|
||||||
command=/usr/local/bin/setruid
|
command=/usr/local/bin/setruid
|
||||||
command_args="lewdfingerd /usr/local/bin/lewdfingerd"
|
command_args="lewdfingerd /usr/local/bin/lewdfingerd"
|
||||||
pidfile=/var/run/${RC_SVCNAME}.pid
|
pidfile=/var/run/${RC_SVCNAME}.pid
|
||||||
|
|
||||||
# We don't create a PID file nor do we background
|
# We don't create a PID file nor do we background
|
||||||
command_background=true
|
command_background=true
|
||||||
|
|
||||||
# We don't change our group but we do change our user
|
|
||||||
command_user="root:lewdfingerd"
|
|
||||||
|
|
Loading…
Reference in New Issue