diff options
Diffstat (limited to 'apks/cerrado/cerrado.initd')
-rw-r--r-- | apks/cerrado/cerrado.initd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/apks/cerrado/cerrado.initd b/apks/cerrado/cerrado.initd new file mode 100644 index 0000000..55086e1 --- /dev/null +++ b/apks/cerrado/cerrado.initd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run + +command="/usr/bin/cerrado" +command_args="-config $config" +: ${command_user:="cerrado:cerrado"} +command_background=yes +directory="/var/lib/cerrado" +pidfile="/run/cerrado.pid" + +output_log="/var/log/cerrado/access.log" +error_log="/var/log/cerrado/error.log" + +depend() { + need net + after firewall +} + +start_pre() { + checkpath -d -m 755 -o "$command_user" /var/run/cerrado + checkpath -d -m 755 -o "$command_user" /var/log/cerrado +} |