diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apps/gitea/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apps/gitea/files')
-rw-r--r-- | www-apps/gitea/files/gitea.confd | 2 | ||||
-rw-r--r-- | www-apps/gitea/files/gitea.initd | 25 | ||||
-rw-r--r-- | www-apps/gitea/files/gitea.logrotated | 8 |
3 files changed, 35 insertions, 0 deletions
diff --git a/www-apps/gitea/files/gitea.confd b/www-apps/gitea/files/gitea.confd new file mode 100644 index 000000000000..8b1710b06fbc --- /dev/null +++ b/www-apps/gitea/files/gitea.confd @@ -0,0 +1,2 @@ +# arguments for gitea +command_args="--config /var/lib/gitea/conf/app.ini" diff --git a/www-apps/gitea/files/gitea.initd b/www-apps/gitea/files/gitea.initd new file mode 100644 index 000000000000..ea618140c580 --- /dev/null +++ b/www-apps/gitea/files/gitea.initd @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 2016 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_CUSTOM=/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%/*}" +} diff --git a/www-apps/gitea/files/gitea.logrotated b/www-apps/gitea/files/gitea.logrotated new file mode 100644 index 000000000000..ec6ddfe606b9 --- /dev/null +++ b/www-apps/gitea/files/gitea.logrotated @@ -0,0 +1,8 @@ +/var/log/gitea/* { + su git git + missingok + size 5M + rotate 3 + compress + copytruncate +} |