2016-11-07 19:54:17 +08:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $OpenBSD$
|
|
|
|
|
2018-06-05 10:02:04 +08:00
|
|
|
daemon="/usr/local/bin/gitea"
|
2016-11-07 19:54:17 +08:00
|
|
|
daemon_user="git"
|
2018-06-05 10:02:04 +08:00
|
|
|
daemon_flags="web -c /etc/gitea/app.ini"
|
2016-11-07 19:54:17 +08:00
|
|
|
|
2018-06-05 10:02:04 +08:00
|
|
|
gitea_directory="/var/lib/gitea"
|
2016-11-07 19:54:17 +08:00
|
|
|
|
|
|
|
rc_bg=YES
|
|
|
|
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
|
|
|
|
rc_start() {
|
|
|
|
${rcexec} "cd ${gitea_directory}; ${daemon} ${daemon_flags} ${_bg}"
|
|
|
|
}
|
|
|
|
|
|
|
|
rc_cmd $1
|