Initial Awawawa
This commit is contained in:
11
init/openrc/patchbay-sshd
Executable file
11
init/openrc/patchbay-sshd
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/sbin/openrc-run
|
||||
description="PatchBay dedicated sshd (target only)"
|
||||
supervisor=supervise-daemon
|
||||
command=/usr/local/lib/patchbay/patchbay-sshd
|
||||
command_args="/etc/patchbay/patchbay.conf"
|
||||
output_log=/var/log/patchbay-sshd.log
|
||||
error_log=/var/log/patchbay-sshd.log
|
||||
|
||||
depend() {
|
||||
need net patchbayd
|
||||
}
|
||||
12
init/openrc/patchbay-web
Executable file
12
init/openrc/patchbay-web
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/sbin/openrc-run
|
||||
description="PatchBay web interface (target only)"
|
||||
supervisor=supervise-daemon
|
||||
command=/usr/bin/python3
|
||||
command_args="-m patchbay_web -c /etc/patchbay/patchbay.conf serve"
|
||||
directory=/usr/local/lib/patchbay/web
|
||||
output_log=/var/log/patchbay-web.log
|
||||
error_log=/var/log/patchbay-web.log
|
||||
|
||||
depend() {
|
||||
need net patchbayd
|
||||
}
|
||||
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