| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Using this script:
1. Copy scripts/launchd/io.gogs.web.plist into /Library/LaunchDaemons
2. The script assumes Gogs is running under 'gogs' user and group, modify
/Library/LaunchDaemons/io.gogs.web.plist if you want to user different user.
3. The script assumes Gogs is installed in /Users/git/gogs, modify
/Library/LaunchDaemons/io.gogs.web.plist if you installed Gogs in different
location.
4. Once you are sure that running Gogs manually via `gogs web` works fine, run
it as a launchd service with:
sudo launchctl load -F /Library/LaunchDaemons/io.gogs.web.plist
From now on launchd will ensure Gogs is running, eg. when system is restarted.
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the init script is called with `status`, the rc.subr(8) routines check if
the first argument associated with the pid in the pidfile is equal to
`procname`. By default, `procname` is equal to the value of `command`. In our
case, `command` contains a space (i.e. has multiple arguments), so `procname`
can never be equal to the first argument of the command associated with the
pid.
Set `procname` to the first argument of `command` to fix the `status` command
of the init script.
|
| |
|
|
|
|
| |
We no longer need to manually build CSS files as Makefile keeps track of it.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
- 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
|
|\ \
| | |
| | | |
Fix command used by FreeBSD init script
|
| |/ |
|
|\ \
| | |
| | | |
fix systemd "Trailing garbage, ignoring." warning.
|
| |/
| |
| |
| |
| | |
Environment should be a space-separated list instead of comma-separated.
No need for double quoting when the values don't contain spaces.
|
|\ \
| |/
|/| |
Update build.sh for Windows
|
| | |
|
|/
|
| |
We should be *sourcing* `/etc/sysconfig/gogs`, not *executing* it, don't we?
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
This change to start.sh allows it to be executed from any working directory and always reference the gogs binary in the parent directory. Very helpful when calling start.sh from an init script.
|
| |
|
|
|
|
| |
fix
|
|
|
|
|
|
|
| |
how to use:
vim /etc/rc.local, then add
cd /home/git/gogs; scripts/autoboot.sh
(goes path you can replace your path)
|
|
|
|
|
|
|
|
| |
now, we auto add the start.sh -> /usr/bin/gogs_start, then supervisor
needn’t the full path, detail please see the commit.
and how to use:
entry gogs root path, then input
scripts/gogs_supervisord.sh restart (add sudo if need)
|
|\
| |
| | |
Debian's "init.d" - Tentative to fix user's environment variables loading
|
| |
| |
| |
| |
| |
| | |
`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.
|
|\|
| |
| | |
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:
|
| | |
|
| | |
|
|/ |
|
| |
|
| |
|
|
|
|
|
| |
Conflicts:
dockerfiles/README.md
|
|
|
|
|
|
|
|
|
|
| |
Removed trailing whitespaces with
```sh
for file in `grep -r " $" * | cut -d : -f 1 | sort | uniq | grep -v " "`; do sed -i 's/[ \t]*$//' $file; done
```
and some handwork.
|
| |
|
|
|
|
|
| |
Conflicts:
templates/status/500.tmpl
|
|
|