Add an OpenBSD daemon control script (#3060)

release/v1.15
Vasily Mikhaylichenko 2016-07-02 00:24:41 +10:00 committed by 无闻
parent e84ac64964
commit f0df46c88a
1 changed files with 19 additions and 0 deletions

19
scripts/init/openbsd/gogs Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
#
# $OpenBSD$
daemon="/home/git/gogs/gogs"
daemon_user="git"
daemon_flags="web"
gogs_directory="/home/git/gogs"
rc_bg=YES
. /etc/rc.d/rc.subr
rc_start() {
${rcexec} "cd ${gogs_directory}; ${daemon} ${daemon_flags} ${_bg}"
}
rc_cmd $1