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