aboutsummaryrefslogtreecommitdiff
path: root/dev-vcs/git-srht/files/git.sr.ht.initd
diff options
context:
space:
mode:
Diffstat (limited to 'dev-vcs/git-srht/files/git.sr.ht.initd')
-rw-r--r--dev-vcs/git-srht/files/git.sr.ht.initd15
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-vcs/git-srht/files/git.sr.ht.initd b/dev-vcs/git-srht/files/git.sr.ht.initd
new file mode 100644
index 0000000..9d5aac0
--- /dev/null
+++ b/dev-vcs/git-srht/files/git.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="git.sr.ht daemon"
+description=""
+command="/usr/bin/gunicorn"
+command_args="gitsrht.app:app -b ${ADDRESS}:${PORT}"
+command_user="srht:srht"
+command_background=true
+pidfile="/run/${RC_SVCNAME}.pid"
+
+depend() {
+ need net
+}