Can now be installed to /opt and run as a openrc service

This commit is contained in:
Gogs
2026-04-09 14:08:06 +03:00
parent 7f42c04977
commit 0fcb3901d6
5 changed files with 66 additions and 0 deletions

14
dyfi-openrc.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/sbin/openrc-run
log_file="/opt/dyfi/log"
command="/opt/dyfi/run.sh"
command_args="--log ${log_file} --auth /opt/dyfi/auth"
command_background=true
pidfile="/run/${RC_SVCNAME}.pid"
extra_commands="log"
log() {
cat "$log_file"
}