gogs 245 B

12345678910111213141516
  1. #!/sbin/openrc-run
  2. DIR=/home/git/gogs
  3. USER=git
  4. PORT=3000
  5. start_stop_daemon_args="--user ${USER} --chdir ${DIR}"
  6. command="${DIR}/gogs"
  7. command_args="web -port ${PORT}"
  8. command_background=yes
  9. pidfile=/var/run/gogs.pid
  10. depend()
  11. {
  12. need net
  13. }