gogs 251 B

12345678910111213141516171819
  1. #!/bin/sh
  2. #
  3. # $OpenBSD$
  4. daemon="/home/git/gogs/gogs"
  5. daemon_user="git"
  6. daemon_flags="web"
  7. gogs_directory="/home/git/gogs"
  8. rc_bg=YES
  9. . /etc/rc.d/rc.subr
  10. rc_start() {
  11. ${rcexec} "cd ${gogs_directory}; ${daemon} ${daemon_flags} ${_bg}"
  12. }
  13. rc_cmd $1