Initial Awawawa
This commit is contained in:
20
init/openrc/patchbayd
Executable file
20
init/openrc/patchbayd
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/sbin/openrc-run
|
||||
description="PatchBay daemon (target hub or client)"
|
||||
supervisor=supervise-daemon
|
||||
command=/usr/local/sbin/patchbayd
|
||||
command_args="-c /etc/patchbay/patchbay.conf"
|
||||
output_log=/var/log/patchbayd.log
|
||||
error_log=/var/log/patchbayd.log
|
||||
extra_started_commands="reload"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -d -m 0755 /run/patchbay
|
||||
}
|
||||
|
||||
reload() {
|
||||
supervise-daemon "$RC_SVCNAME" --signal HUP
|
||||
}
|
||||
Reference in New Issue
Block a user