gogs 769 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/sh
  2. #
  3. # $FreeBSD$
  4. #
  5. # PROVIDE: gogs
  6. # REQUIRE: NETWORKING SYSLOG
  7. # KEYWORD: shutdown
  8. #
  9. # Add the following lines to /etc/rc.conf to enable gogs:
  10. #
  11. #gogs_enable="YES"
  12. . /etc/rc.subr
  13. name="gogs"
  14. rcvar="gogs_enable"
  15. load_rc_config $name
  16. : ${gogs_user:="git"}
  17. : ${gogs_enable:="NO"}
  18. : ${gogs_directory:="/home/git"}
  19. command="${gogs_directory}/gogs web"
  20. pidfile="${gogs_directory}/${name}.pid"
  21. start_cmd="${name}_start"
  22. stop_cmd="${name}_stop"
  23. gogs_start() {
  24. cd ${gogs_directory}
  25. export USER=${gogs_user}
  26. export HOME=${gogs_directory}
  27. /usr/sbin/daemon -f -u ${gogs_user} -p ${pidfile} $command
  28. }
  29. gogs_stop() {
  30. if [ ! -f $pidfile ]; then
  31. echo "GOGS PID File not found. Maybe GOGS is not running?"
  32. else
  33. kill $(cat $pidfile)
  34. fi
  35. }
  36. run_rc_command "$1"
PANIC: session(release): write data/sessions/d/6/d653e67bc58943f7: no space left on device

PANIC

session(release): write data/sessions/d/6/d653e67bc58943f7: no space left on device
github.com/go-macaron/session@v0.0.0-20190805070824-1a3cdc6f5659/session.go:199 (0x8b2934)
gopkg.in/macaron.v1@v1.3.9/context.go:79 (0x83d0a0)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/context.go:112 (0x84fdb5)
gopkg.in/macaron.v1@v1.3.9/recovery.go:161 (0x84fda8)
gopkg.in/macaron.v1@v1.3.9/logger.go:40 (0x840c73)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/router.go:187 (0x850fc6)
gopkg.in/macaron.v1@v1.3.9/router.go:303 (0x8493e5)
gopkg.in/macaron.v1@v1.3.9/macaron.go:220 (0x841fca)
net/http/server.go:2836 (0x7a79b2)
net/http/server.go:1924 (0x7a341b)
runtime/asm_amd64.s:1373 (0x46f9f0)