aboutsummaryrefslogtreecommitdiffstats
path: root/community/gitea/gitea.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/gitea/gitea.initd')
-rw-r--r--community/gitea/gitea.initd9
1 files changed, 4 insertions, 5 deletions
diff --git a/community/gitea/gitea.initd b/community/gitea/gitea.initd
index 3b18678b6b..b72224217e 100644
--- a/community/gitea/gitea.initd
+++ b/community/gitea/gitea.initd
@@ -1,12 +1,11 @@
#!/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"
+command_args="web"
+start_stop_daemon_args="--user ${GITEA_USER:-gitea} --env GITEA_CUSTOM=${GITEA_CUSTOM:-/var/lib/gitea} --chdir ${GITEA_CUSTOM:-/var/lib/gitea}"
+command_background=yes
+pidfile="/run/gitea.pid"
depend() {
use logger dns