From 6f5a8286e0c614212d2c9c83e8c0997168ba636a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 20 Mar 2019 19:42:23 +0200 Subject: [PATCH] start-stop-daemon --background discards output; use shell backgrounding --- gitlab-runner.init | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gitlab-runner.init b/gitlab-runner.init index 0fad0e0..258efb3 100755 --- a/gitlab-runner.init +++ b/gitlab-runner.init @@ -25,10 +25,9 @@ do_start() { start-stop-daemon --start \ --pidfile "$PIDFILE" \ --chdir "$CHDIR" \ - --background \ --make-pidfile \ --chuid "$USER:$GROUP" \ - --exec "$DAEMON" -- "run" >> $LOGFILE 2>&1 + --exec "$DAEMON" -- "run" >> $LOGFILE 2>&1 & } do_stop() { -- 2.43.0