aboutsummaryrefslogtreecommitdiff
path: root/apks/jnfilter/jnfilter.initd
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-12-28 01:49:02 +0100
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-12-28 02:12:18 +0100
commit1b1036f1353d2625bdebe1aacc327210dea401a4 (patch)
treeca1da699489c6ce1bb532eeae6c2493e820ee4ed /apks/jnfilter/jnfilter.initd
parentf641e258bc609946a66710442d675da21a387636 (diff)
downloadapkbuilds-1b1036f1353d2625bdebe1aacc327210dea401a4.tar.gz
apkbuilds-1b1036f1353d2625bdebe1aacc327210dea401a4.tar.bz2
apkbuilds-1b1036f1353d2625bdebe1aacc327210dea401a4.zip
feat: Add jnfilter package
Diffstat (limited to 'apks/jnfilter/jnfilter.initd')
-rw-r--r--apks/jnfilter/jnfilter.initd17
1 files changed, 17 insertions, 0 deletions
diff --git a/apks/jnfilter/jnfilter.initd b/apks/jnfilter/jnfilter.initd
new file mode 100644
index 0000000..83c7a97
--- /dev/null
+++ b/apks/jnfilter/jnfilter.initd
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+supervisor="supervise-daemon"
+
+name="jnfilter"
+command="/usr/bin/gunicorn"
+command_args="
+ -w ${workers}
+ -b ${host}:${port}
+ jnfilter:app
+"
+command_background="yes"
+
+pidfile="/run/$RC_SVCNAME.pid"
+
+depend() {
+ use net
+}