21 lines
424 B
Plaintext
Executable File
21 lines
424 B
Plaintext
Executable File
#!/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
|
|
}
|