aports/openrc/gitea/runfile

21 lines
646 B
Plaintext
Raw Normal View History

2020-12-22 22:14:01 +00:00
#!/sbin/openrc-run
supervisor=supervise-daemon
name=gitea
command="/usr/bin/gitea"
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}' --env GITEA_CUSTOM='${GITEA_CUSTOM:-/var/lib/gitea/custom}' --chdir '${GITEA_WORK_DIR:-/var/lib/gitea}'"
2020-12-22 22:14:01 +00:00
pidfile="/run/gitea.pid"
depend() {
need net
use logger dns
after firewall mysql postgresql
2020-12-22 22:14:01 +00:00
}
start_pre() {
checkpath -d -o "$command_user" -m755 "${GITEA_WORK_DIR:-/var/lib/gitea}"
2022-04-17 18:13:37 +00:00
ulimit -n 4096 # FIX: Gitea can and WILL run out of file descriptors under heavy load
2020-12-22 22:14:01 +00:00
}