aboutsummaryrefslogtreecommitdiff
path: root/net-libs/meta-srht/files/meta.sr.ht.initd
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/meta-srht/files/meta.sr.ht.initd')
-rw-r--r--net-libs/meta-srht/files/meta.sr.ht.initd15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-libs/meta-srht/files/meta.sr.ht.initd b/net-libs/meta-srht/files/meta.sr.ht.initd
new file mode 100644
index 0000000..0728798
--- /dev/null
+++ b/net-libs/meta-srht/files/meta.sr.ht.initd
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+name="meta.sr.ht daemon"
+description=""
+command="/usr/bin/gunicorn"
+command_args="metasrht.app:app -b ${ADDRESS}:${PORT}"
+command_user="srht:srht"
+command_background=true
+pidfile="/run/${RC_SVCNAME}.pid"
+
+depend() {
+ need net
+}