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.initd8
1 files changed, 5 insertions, 3 deletions
diff --git a/community/gitea/gitea.initd b/community/gitea/gitea.initd
index b72224217e..2d43d9d779 100644
--- a/community/gitea/gitea.initd
+++ b/community/gitea/gitea.initd
@@ -1,10 +1,11 @@
#!/sbin/openrc-run
+supervisor=supervise-daemon
name=gitea
command="/usr/bin/gitea"
-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
+command_user="${GITEA_USER:-gitea}"
+command_args="web --config '${GITEA_CONF:-/etc/gitea/app.ini}'"
+supervise_daemon_args="--env GITEA_WORK_DIR='${GITEA_WORK_DIR:-/var/lib/gitea}' --chdir '${GITEA_WORK_DIR:-/var/lib/gitea}' --stdout '${GITEA_LOG_FILE:-/var/log/gitea/http.log}' --stderr '${GITEA_LOG_FILE:-/var/log/gitea/http.log}'"
pidfile="/run/gitea.pid"
depend() {
@@ -12,3 +13,4 @@ depend() {
need net
after firewall
}
+