From e8914b31ece81d0c019052a64ff765af7d1ea96c Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Wed, 22 Mar 2017 12:47:44 +0100 Subject: community/gitea: add working initd --- community/gitea/gitea.initd | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'community/gitea/gitea.initd') 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 -- cgit v1.2.3