aboutsummaryrefslogtreecommitdiffstats
path: root/community/gitea/gitea.initd
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2017-03-10 00:30:23 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2017-03-10 00:30:23 +0100
commit23980ddbd76a735adb0f6f8f66b4a80d72df363a (patch)
tree9285b6a4fca77df9b3443fc83316f7d89cd6e616 /community/gitea/gitea.initd
parent7852dbe781671abbe17bb633ffa2956fdd270716 (diff)
downloadaports-23980ddbd76a735adb0f6f8f66b4a80d72df363a.tar.bz2
aports-23980ddbd76a735adb0f6f8f66b4a80d72df363a.tar.xz
testing/gitea: move to community
Diffstat (limited to 'community/gitea/gitea.initd')
-rw-r--r--community/gitea/gitea.initd15
1 files changed, 15 insertions, 0 deletions
diff --git a/community/gitea/gitea.initd b/community/gitea/gitea.initd
new file mode 100644
index 0000000000..3b18678b6b
--- /dev/null
+++ b/community/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
+}