new structure
This commit is contained in:
1
app/templates/od8n
Normal file
1
app/templates/od8n
Normal file
@@ -0,0 +1 @@
|
||||
API_KEY={API_KEY}
|
||||
25
app/templates/od8n-api
Normal file
25
app/templates/od8n-api
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name="od8n-api"
|
||||
description="OD8N API Service"
|
||||
|
||||
command="/OD8N/sbin/api"
|
||||
command_args=""
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
command_background="yes"
|
||||
|
||||
if [ -f /etc/od8n ]; then
|
||||
. /etc/od8n
|
||||
export $(cut -d= -f1 /etc/od8n)
|
||||
fi
|
||||
|
||||
output_log="/OD8N/data/api.log"
|
||||
error_log="/OD8N/data/api.log"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
use logger dns
|
||||
after firewall
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user