From 506249ae1f0e2819b3decf096186294bed7a1fd4 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Tue, 11 Jun 2024 21:21:34 +0200 Subject: chore: Add cerrado --- apks/cerrado/cerrado.initd | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 apks/cerrado/cerrado.initd (limited to 'apks/cerrado/cerrado.initd') 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 +} -- cgit v1.2.3