diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-06-02 17:18:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-06-02 17:18:14 +0100 |
commit | 7b9f15840068dfaeea5684f8a1af1fe460dfa14c (patch) | |
tree | 112eea4497761c0227537330b58f9c7e0af3f9d8 /www-apps/gitea/files/gitea.initd-r1 | |
parent | 0bff53119f08d677db6c1a991bd30741682a8a08 (diff) |
gentoo resync : 02.06.2018
Diffstat (limited to 'www-apps/gitea/files/gitea.initd-r1')
-rw-r--r-- | www-apps/gitea/files/gitea.initd-r1 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/www-apps/gitea/files/gitea.initd-r1 b/www-apps/gitea/files/gitea.initd-r1 new file mode 100644 index 000000000000..837164aa0140 --- /dev/null +++ b/www-apps/gitea/files/gitea.initd-r1 @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 2016-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Gitea, a self-hosted Git service" +pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"} +user=${user:-git} +group=${group:-git} + +command="/usr/bin/gitea web" +command_args="${command_args:--config /var/lib/gitea/conf/app.ini}" +command_background="true" +start_stop_daemon_args="--user ${user} --group ${group} \ + -e GITEA_WORK_DIR=/var/lib/gitea + --stdout /var/log/${SVCNAME}/${SVCNAME}.log \ + --stderr /var/log/${SVCNAME}/${SVCNAME}.log" + +depend() { + need net + after net +} + +start_pre() { + checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}" +} |