aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gitea/gitea.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/gitea/gitea.initd')
-rw-r--r--testing/gitea/gitea.initd15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/gitea/gitea.initd b/testing/gitea/gitea.initd
new file mode 100644
index 0000000000..3b18678b6b
--- /dev/null
+++ b/testing/gitea/gitea.initd
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+
+name=gitea
+conffile="$GITEA_CUSTOM/conf/app.ini"
+command="/usr/bin/gitea"
+command_args="web -c $conffile"
+start_stop_daemon_args="${GITEA_USER:+--user} $GITEA_USER --env GITEA_CUSTOM=$GITEA_CUSTOM"
+pidfile="/var/run/gitea.pid"
+command_background="yes"
+
+depend() {
+ use logger dns
+ need net
+ after firewall
+}