aboutsummaryrefslogtreecommitdiff
path: root/apks/cerrado/cerrado.initd
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-06-11 21:21:34 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-06-11 21:33:36 +0200
commit506249ae1f0e2819b3decf096186294bed7a1fd4 (patch)
treeed096f9c9984153f25235171c4250c5ec4bebc0b /apks/cerrado/cerrado.initd
parent07fa6c8393769d84cfdf47487e69c28a25d403cf (diff)
downloadapkbuilds-506249ae1f0e2819b3decf096186294bed7a1fd4.tar.gz
apkbuilds-506249ae1f0e2819b3decf096186294bed7a1fd4.tar.bz2
apkbuilds-506249ae1f0e2819b3decf096186294bed7a1fd4.zip
chore: Add cerrado
Diffstat (limited to 'apks/cerrado/cerrado.initd')
-rw-r--r--apks/cerrado/cerrado.initd21
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
+}