Commit Graph

13 Commits (db00aa7653937ce62d1ffa37661e50ea4bee80cd)

Author SHA1 Message Date
Jeff Geerling 4a05c4a759 Set USER env variable so installation can complete successfully. 10 years ago
Unknwon 70d44e9565 Merge branch 'master' of github.com:gogits/gogs into develop 10 years ago
William Friesen bfef8f0edd Fix command used by FreeBSD init script 10 years ago
Björn 6eecbf17cd fix debian init script
- use start-stop-daemon's chuid feature insted of su
  - using `su -c` breaks if the git user has no usable shell
  - this fixes #1025
- put --test before --exec, instead it gets passed to gogs
- set cwd via --chdir
10 years ago
Robert Rauch 7e5063a93d fix typo in centos init script
We should be *sourcing* `/etc/sysconfig/gogs`, not *executing* it, don't we?
10 years ago
Carlos Gutierrez e7f4d23412 Remove use of PID and fix stderr redirection 10 years ago
Clint Armstrong 66a9c0d71d Rename scripts/rc/freebsd/gogs to scripts/init/freebsd/gogs 10 years ago
无闻 3ffa17c49a Merge pull request #519 from silverkorn/dev
Debian's "init.d" - Tentative to fix user's environment variables loading
11 years ago
Danny B 98c719c342 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.
11 years ago
无闻 198567eccb Merge pull request #517 from silverkorn/dev
Added "init.d" service script for Debian-based Linux.
11 years ago
Danny B f7de6d2b86 Added "init.d" service script for Debian-based Linux.
Compatible with "/etc/default/gogs" configuration file for adding or overwriting values.
Based on "/etc/init.d/skeleton" and tested on Raspbian 2014-06-20 (Debian 7.5 [Wheezy] ARM)

[TO FIX] For some reason, it's necessary to remove the value of RUN_USER from the app.ini configuration file because the following error occurs:
2014/09/28 18:12:53 [setting.go:182 NewConfigContext()] [E] Expect user(git) but current user is:
11 years ago
Luca Beltrame d95e7065d9 s/USER/GOGS_USER/g 11 years ago
Luca Beltrame 5e48c89c5e Add a CentOS init script 11 years ago