diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2017-06-15 11:31:17 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2017-06-15 11:35:18 +0200 |
commit | 058c66db9c49e37430f7175d6a9d48564f2560cc (patch) | |
tree | 47c0001af8c33f8ebce3ed6dd1ccfb619a1aa766 /community/gitea/gitea.initd | |
parent | 599e8381df4377cae85b55c714775fd6f3fac4d7 (diff) | |
download | aports-058c66db9c49e37430f7175d6a9d48564f2560cc.tar.bz2 aports-058c66db9c49e37430f7175d6a9d48564f2560cc.tar.xz |
community/gitea: various fixes/changes
modernize abuild
change permission var/lib/gitea
set APP_DATA_PATH and make this default for data files
set GITEA_WORK_DIR as environment variable
switch to openrc supervise-daemon
Diffstat (limited to 'community/gitea/gitea.initd')
-rw-r--r-- | community/gitea/gitea.initd | 8 |
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 } + |