[packages/gitlab-workhorse] redirfds hack

glen glen at pld-linux.org
Sun Sep 4 14:36:19 CEST 2016


commit 4d0d4ea35da422f1ee317bc8c876a5a30c9067f9
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Sep 4 15:36:14 2016 +0300

    redirfds hack

 gitlab-workhorse.init | 5 ++++-
 gitlab-workhorse.spec | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gitlab-workhorse.spec b/gitlab-workhorse.spec
index b7201f8..d2b150e 100644
--- a/gitlab-workhorse.spec
+++ b/gitlab-workhorse.spec
@@ -1,7 +1,7 @@
 Summary:	An HTTP daemon that serves Git clients
 Name:		gitlab-workhorse
 Version:	0.7.11
-Release:	1
+Release:	2
 License:	MIT
 Group:		Development/Building
 Source0:	https://gitlab.com/gitlab-org/gitlab-workhorse/repository/archive.tar.gz?ref=v%{version}&/%{name}-%{version}.tar.gz
diff --git a/gitlab-workhorse.init b/gitlab-workhorse.init
index f6590ea..a5cb868 100755
--- a/gitlab-workhorse.init
+++ b/gitlab-workhorse.init
@@ -44,7 +44,10 @@ start() {
 	fi
 
 	msg_starting "GitLab Workhorse"
-	daemon --pidfile $pidfile --user $USER --makepid --chdir "$APP_PATH" --fork \
+	# initlog would cause fd1 and fd2 to be pipe
+	# those won't exist when workhorse tries to write to stdout causing it to abort with SIGPIPE
+	RC_LOGGING=no
+	daemon --pidfile $pidfile --user $USER --makepid --chdir "$APP_PATH" --redirfds --fork \
 		/usr/sbin/gitlab-workhorse -listenUmask 0 \
 			-authBackend http://localhost:8080 -authSocket /var/run/gitlab/gitlab.socket \
 			-documentRoot /usr/lib/gitlab/public \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gitlab-workhorse.git/commitdiff/4d0d4ea35da422f1ee317bc8c876a5a30c9067f9



More information about the pld-cvs-commit mailing list