Can now be installed to /opt and run as a openrc service
This commit is contained in:
14
dyfi-openrc.sh
Executable file
14
dyfi-openrc.sh
Executable 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"
|
||||
}
|
||||
Reference in New Issue
Block a user