This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/www-apps/gitea/files/gitea.initd-r2
Ian Moone 43618b74c8
www-apps/gitea: revbump to fix init script
OpenRC devs states that "PID files should be writable
only by root".

See the service-script-guide.md in OpenRC's source repo:
https://github.com/OpenRC/openrc

Package-Manager: Portage-2.3.50, Repoman-2.3.11
Manifest-Sign-Key: 0x5010AD684AB2A4EE
2018-09-27 13:32:25 +00:00

22 lines
595 B
Plaintext

#!/sbin/openrc-run
# Copyright 2016-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="Gitea, a self-hosted Git service"
pidfile=${pidfile:-"/run/${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
}