diff options
author | Unknwon <u@gogs.io> | 2015-07-25 00:49:40 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-07-25 00:49:40 +0800 |
commit | 54b58e988d4fac4a3f67feef39d62134352fb07c (patch) | |
tree | db32c6c6860f6b6bacb0c90c32a25b5a3b7c8002 /scripts/init/debian/gogs | |
parent | dc4aab9925b46f8ad4b18f7926e2904163c1c5b5 (diff) | |
parent | 70d44e9565e372c73d4f0f42273d4899e8e07f75 (diff) |
Merge branch 'develop' of github.com:gogits/gogs into feature/page_issues
Diffstat (limited to 'scripts/init/debian/gogs')
-rw-r--r-- | scripts/init/debian/gogs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/init/debian/gogs b/scripts/init/debian/gogs index 13e8b8aa..b0b52286 100644 --- a/scripts/init/debian/gogs +++ b/scripts/init/debian/gogs @@ -49,10 +49,12 @@ do_start() # 1 if daemon was already running # 2 if daemon could not be started sh -c "start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile \\ - --exec $DAEMON -- $DAEMON_ARGS --test > /dev/null \\ + --test --chdir $WORKINGDIR --chuid $USER \\ + --exec $DAEMON -- $DAEMON_ARGS > /dev/null \\ || return 1" sh -c "start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile \\ - --background --exec /bin/su -- - $USER -c \"cd \\\"$WORKINGDIR\\\" && $DAEMON -- $DAEMON_ARGS\" \\ + --background --chdir $WORKINGDIR --chuid $USER \\ + --exec $DAEMON -- $DAEMON_ARGS \\ || return 2" } |