gogs 251 B

1234567891011121314151617181920
  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