gogits/gogs — pull request #519 by silverkorn (2014-10-01 01:35:02+00:00)
Title: Debian's "init.d" - Tentative to fix user's environment variables loading

Debian's init.d workaround for loading user's environment variables with `start-stop-daemon` command.

Implies 2 running child, so the `stop` command usually needs a `KILL` instead of a `TERM` to close properly so I reduced it to 1 second to get quickly with the `KILL` signal.

You might want to test with a Debian-based Linux distribution (Ubuntu might also work).

Thank you!