21 lines
581 B
Plaintext
21 lines
581 B
Plaintext
#!/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}'"
|
|
pidfile="/run/gitea.pid"
|
|
|
|
depend() {
|
|
use logger dns
|
|
need net
|
|
after firewall mysql postgresql
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath -d -o "$command_user" -m755 "${GITEA_WORK_DIR:-/var/lib/gitea}"
|
|
}
|
|
|