working
This commit is contained in:
@@ -3,11 +3,19 @@
|
||||
name="4server-api"
|
||||
description="4server API Service"
|
||||
|
||||
# Command uses Python inside the venv
|
||||
command="/4server/sbin/api"
|
||||
command_args=""
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
command_background="yes"
|
||||
|
||||
# Load environment variables if needed
|
||||
if [ -f /etc/od8n ]; then
|
||||
. /etc/od8n
|
||||
export $(cut -d= -f1 /etc/od8n)
|
||||
fi
|
||||
|
||||
# Logs
|
||||
output_log="/4server/data/api.log"
|
||||
error_log="/4server/data/api.log"
|
||||
|
||||
@@ -17,4 +25,3 @@ depend() {
|
||||
after firewall
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user