[packages/dbus] redir /dev/null to rc-script serivce to avoid silent deaths of dbus daemon on machine reboot

glen glen at pld-linux.org
Sun Mar 2 01:18:25 CET 2014


commit bc56a74763b32a7fff9a6a48f3c0088655b93b30
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 2 02:17:47 2014 +0200

    redir /dev/null to rc-script serivce to avoid silent deaths of dbus daemon on machine reboot

 dbus.spec       | 2 +-
 messagebus.init | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/dbus.spec b/dbus.spec
index 7627ce9..680dd39 100644
--- a/dbus.spec
+++ b/dbus.spec
@@ -8,7 +8,7 @@ Summary:	D-BUS message bus
 Summary(pl.UTF-8):	Magistrala przesyłania komunikatów D-BUS
 Name:		dbus
 Version:	1.8.0
-Release:	1
+Release:	2
 License:	AFL v2.1 or GPL v2
 Group:		Libraries
 Source0:	http://dbus.freedesktop.org/releases/dbus/%{name}-%{version}.tar.gz
diff --git a/messagebus.init b/messagebus.init
old mode 100644
new mode 100755
index d70ccd6..8b48d6a
--- a/messagebus.init
+++ b/messagebus.init
@@ -41,7 +41,7 @@ start() {
 		modprobe -s capability
 	fi
 	dbus-uuidgen --ensure
-	daemon --pidfile dbus.pid /usr/bin/dbus-daemon --system
+	daemon --pidfile dbus.pid --redirfds /usr/bin/dbus-daemon --system
 	RETVAL=$?
 	if [ $RETVAL -eq 0 ] ; then
 		touch /var/lock/subsys/messagebus
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dbus.git/commitdiff/bc56a74763b32a7fff9a6a48f3c0088655b93b30



More information about the pld-cvs-commit mailing list