Initial Awawawa

This commit is contained in:
mueller_minki
2026-10-04 09:08:27 +02:00
commit 8e83a98ef4
76 changed files with 8225 additions and 0 deletions

11
init/openrc/patchbay-sshd Executable file
View 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
View 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
View 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
}