gogs 300 B

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