[packages/fedmsg] - rel 2; --daemon option is gone in upstream

arekm arekm at pld-linux.org
Thu Nov 28 21:29:43 CET 2019


commit 76c535808a8e090ebccf79a3043108e457dc6da7
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 28 21:29:36 2019 +0100

    - rel 2; --daemon option is gone in upstream

 fedmsg-hub.init | 4 ++--
 fedmsg.spec     | 5 +----
 2 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/fedmsg.spec b/fedmsg.spec
index dce3e0b..02d3640 100644
--- a/fedmsg.spec
+++ b/fedmsg.spec
@@ -1,6 +1,3 @@
-# TODO
-# - --daemonize crashes (works under systemd only): https://github.com/fedora-infra/fedmsg/issues/302
-
 # Conditional build:
 %bcond_with	tests		# build with tests
 
@@ -10,7 +7,7 @@
 Summary:	Tools for Fedora Infrastructure real-time messaging
 Name:		fedmsg
 Version:	1.1.1
-Release:	1
+Release:	2
 License:	LGPL v2+
 Group:		Applications/Networking
 Source0:	https://files.pythonhosted.org/packages/source/f/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
diff --git a/fedmsg-hub.init b/fedmsg-hub.init
index 42042fc..6ef35e3 100755
--- a/fedmsg-hub.init
+++ b/fedmsg-hub.init
@@ -27,7 +27,7 @@ fi
 # Set defaults
 PROG=fedmsg-hub
 USER=fedmsg
-OPTIONS=--daemon
+OPTIONS=
 PIDFILE=/var/run/fedmsg/$PROG.pid
 
 # Get service config - may override defaults
@@ -41,7 +41,7 @@ start() {
 	fi
 
 	msg_starting "FedMsg Hub"
-	daemon --user $USER $PROG $OPTIONS
+	daemon --user $USER --fork $PROG $OPTIONS
 	RETVAL=$?
 	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/fedmsg-hub
 }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fedmsg.git/commitdiff/76c535808a8e090ebccf79a3043108e457dc6da7



More information about the pld-cvs-commit mailing list