15 lines
559 B
Text
15 lines
559 B
Text
#!/sbin/openrc-run
|
|
|
|
supervisor=supervise-daemon
|
|
name=forgejo
|
|
command="/usr/bin/forgejo"
|
|
command_user="${FORGEJO_USER:-forgejo}:www-data"
|
|
command_args="web --config '${FORGEJO_CONF:-/etc/forgejo/app.ini}'"
|
|
supervise_daemon_args="--env FORGEJO_WORK_DIR='${FORGEJO_WORK_DIR:-/var/lib/forgejo}' --chdir '${FORGEJO_WORK_DIR:-/var/lib/forgejo}' --stdout '${FORGEJO_LOG_FILE:-/var/log/forgejo/http.log}' --stderr '${FORGEJO_LOG_FILE:-/var/log/forgejo/http.log}'"
|
|
pidfile="/run/forgejo.pid"
|
|
|
|
depend() {
|
|
use logger dns
|
|
need net
|
|
after firewall mysql postgresql
|
|
}
|