diff --git a/scripts/init/openbsd/gogs b/scripts/init/openbsd/gogs new file mode 100755 index 000000000..95fcf1696 --- /dev/null +++ b/scripts/init/openbsd/gogs @@ -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