2016-12-22 12:39:17 +03:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
2018-06-05 05:02:04 +03:00
|
|
|
DIR=/var/lib/gitea
|
2016-12-22 12:39:17 +03:00
|
|
|
USER=git
|
|
|
|
|
|
|
|
start_stop_daemon_args="--user ${USER} --chdir ${DIR}"
|
2018-06-05 05:02:04 +03:00
|
|
|
command="/usr/local/bin/gitea"
|
|
|
|
command_args="web -c /etc/gitea/app.ini"
|
2016-12-22 12:39:17 +03:00
|
|
|
command_background=yes
|
2020-08-15 23:15:27 +03:00
|
|
|
pidfile=/run/gitea.pid
|
2016-12-22 12:39:17 +03:00
|
|
|
|
|
|
|
depend()
|
|
|
|
{
|
|
|
|
need net
|
|
|
|
}
|