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
|
|
|
|
pidfile=/var/run/gitea.pid
|
|
|
|
|
|
|
|
depend()
|
|
|
|
{
|
|
|
|
need net
|
|
|
|
}
|