From: jacmet at uclibc.org <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/dbus
Date: Tue, 4 Mar 2008 04:19:14 -0800 (PST) [thread overview]
Message-ID: <20080304121914.3879B120129@busybox.net> (raw)
Author: jacmet
Date: 2008-03-04 04:19:13 -0800 (Tue, 04 Mar 2008)
New Revision: 21161
Log:
dbus: start earlier
Start dbus early enough so other services can use it (E.G. avahi).
Added:
trunk/buildroot/package/dbus/S30dbus
Removed:
trunk/buildroot/package/dbus/S97messagebus
Modified:
trunk/buildroot/package/dbus/dbus.mk
Changeset:
Copied: trunk/buildroot/package/dbus/S30dbus (from rev 21160, trunk/buildroot/package/dbus/S97messagebus)
===================================================================
--- trunk/buildroot/package/dbus/S30dbus (rev 0)
+++ trunk/buildroot/package/dbus/S30dbus 2008-03-04 12:19:13 UTC (rev 21161)
@@ -0,0 +1,77 @@
+#!/bin/sh
+#
+# messagebus: The D-BUS systemwide message bus
+#
+# chkconfig: 345 97 03
+# description: This is a daemon which broadcasts notifications of system events \
+# and other messages. See http://www.freedesktop.org/software/dbus/
+#
+# processname: dbus-daemon
+# pidfile: /var/run/messagebus.pid
+#
+
+# Sanity checks.
+[ -x /usr/bin/dbus-daemon ] || exit 0
+
+# Create needed directories.
+[ -d /var/run/dbus ] || mkdir -p /var/run/dbus
+[ -d /var/lock/subsys ] || mkdir -p /var/lock/subsys
+
+RETVAL=0
+
+start() {
+ echo -n "Starting system message bus: "
+
+ dbus-uuidgen --ensure
+ dbus-daemon --system
+ RETVAL=$?
+ echo "done"
+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dbus-daemon
+}
+
+stop() {
+ echo -n "Stopping system message bus: "
+
+ ## we don't want to kill all the per-user $processname, we want
+ ## to use the pid file *only*; because we use the fake nonexistent
+ ## program name "$servicename" that should be safe-ish
+ killall dbus-daemon
+ RETVAL=$?
+ echo "done"
+ if [ $RETVAL -eq 0 ]; then
+ rm -f /var/lock/subsys/dbus-daemon
+ rm -f /var/run/messagebus.pid
+ fi
+}
+
+# See how we were called.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ status)
+ status $processname
+ RETVAL=$?
+ ;;
+ restart)
+ stop
+ start
+ ;;
+ condrestart)
+ if [ -f /var/lock/subsys/$servicename ]; then
+ stop
+ start
+ fi
+ ;;
+ reload)
+ echo "Message bus can't reload its configuration, you have to restart it"
+ RETVAL=$?
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
+ ;;
+esac
+exit $RETVAL
Deleted: trunk/buildroot/package/dbus/S97messagebus
===================================================================
--- trunk/buildroot/package/dbus/S97messagebus 2008-03-04 11:36:25 UTC (rev 21160)
+++ trunk/buildroot/package/dbus/S97messagebus 2008-03-04 12:19:13 UTC (rev 21161)
@@ -1,77 +0,0 @@
-#!/bin/sh
-#
-# messagebus: The D-BUS systemwide message bus
-#
-# chkconfig: 345 97 03
-# description: This is a daemon which broadcasts notifications of system events \
-# and other messages. See http://www.freedesktop.org/software/dbus/
-#
-# processname: dbus-daemon
-# pidfile: /var/run/messagebus.pid
-#
-
-# Sanity checks.
-[ -x /usr/bin/dbus-daemon ] || exit 0
-
-# Create needed directories.
-[ -d /var/run/dbus ] || mkdir -p /var/run/dbus
-[ -d /var/lock/subsys ] || mkdir -p /var/lock/subsys
-
-RETVAL=0
-
-start() {
- echo -n "Starting system message bus: "
-
- dbus-uuidgen --ensure
- dbus-daemon --system
- RETVAL=$?
- echo "done"
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dbus-daemon
-}
-
-stop() {
- echo -n "Stopping system message bus: "
-
- ## we don't want to kill all the per-user $processname, we want
- ## to use the pid file *only*; because we use the fake nonexistent
- ## program name "$servicename" that should be safe-ish
- killall dbus-daemon
- RETVAL=$?
- echo "done"
- if [ $RETVAL -eq 0 ]; then
- rm -f /var/lock/subsys/dbus-daemon
- rm -f /var/run/messagebus.pid
- fi
-}
-
-# See how we were called.
-case "$1" in
- start)
- start
- ;;
- stop)
- stop
- ;;
- status)
- status $processname
- RETVAL=$?
- ;;
- restart)
- stop
- start
- ;;
- condrestart)
- if [ -f /var/lock/subsys/$servicename ]; then
- stop
- start
- fi
- ;;
- reload)
- echo "Message bus can't reload its configuration, you have to restart it"
- RETVAL=$?
- ;;
- *)
- echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
- ;;
-esac
-exit $RETVAL
Modified: trunk/buildroot/package/dbus/dbus.mk
===================================================================
--- trunk/buildroot/package/dbus/dbus.mk 2008-03-04 11:36:25 UTC (rev 21160)
+++ trunk/buildroot/package/dbus/dbus.mk 2008-03-04 12:19:13 UTC (rev 21161)
@@ -72,7 +72,7 @@
$(TARGET_DIR)/usr/lib/libdbus-1.la \
$(TARGET_DIR)/usr/include/dbus-1.0 \
$(TARGET_DIR)/usr/lib/pkgconfig
- $(INSTALL) -m 0755 package/dbus/S97messagebus $(TARGET_DIR)/etc/init.d
+ $(INSTALL) -m 0755 package/dbus/S30dbus $(TARGET_DIR)/etc/init.d
rm -f $(TARGET_DIR)/etc/init.d/messagebus
ifneq ($(BR2_HAVE_MANPAGES),y)
rm -rf $(TARGET_DIR)/usr/share/man
@@ -84,7 +84,7 @@
rm -f $(TARGET_DIR)/etc/dbus-1/session.conf
rm -f $(TARGET_DIR)/etc/dbus-1/system.conf
rmdir -p --ignore-fail-on-non-empty $(TARGET_DIR)/etc/dbus-1/system.d
- rm -f $(TARGET_DIR)/etc/init.d/S97messagebus
+ rm -f $(TARGET_DIR)/etc/init.d/S30dbus
rm -f $(TARGET_DIR)/usr/lib/libdbus-1.so*
rm -f $(TARGET_DIR)/usr/bin/dbus-daemon
rm -rf $(TARGET_DIR)/tmp/dbus
next reply other threads:[~2008-03-04 12:19 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-04 12:19 jacmet at uclibc.org [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-02-24 11:13 [Buildroot] svn commit: trunk/buildroot/package/dbus jacmet at uclibc.org
2009-02-22 20:12 jacmet at uclibc.org
2009-01-31 22:53 jacmet at uclibc.org
2009-02-01 5:58 ` Hamish Moffatt
2009-02-01 6:31 ` Peter Korsgaard
2009-02-01 10:58 ` Ulf Samuelsson
2009-02-01 13:17 ` Peter Korsgaard
2009-01-31 21:01 ulf at uclibc.org
2009-01-31 18:39 jacmet at uclibc.org
2009-01-31 20:52 ` Ulf Samuelsson
2009-01-31 21:20 ` Peter Korsgaard
2009-01-31 21:55 ` Ulf Samuelsson
2009-01-31 22:26 ` Peter Korsgaard
2009-01-31 12:02 ulf at uclibc.org
2009-01-31 13:09 ` Peter Korsgaard
2009-01-30 13:54 jacmet at uclibc.org
2009-01-25 20:55 ulf at uclibc.org
2009-01-25 21:00 ` Peter Korsgaard
2009-01-25 23:31 ` Ulf Samuelsson
2009-01-26 6:02 ` Peter Korsgaard
2008-06-20 21:45 jacmet at uclibc.org
2008-06-15 20:20 jacmet at uclibc.org
2008-04-06 13:33 ulf at uclibc.org
2008-03-31 19:36 jacmet at uclibc.org
2008-03-12 14:51 ninevoltz at uclibc.org
2008-03-06 18:46 ninevoltz at uclibc.org
2008-01-30 13:57 vanokuten at uclibc.org
2007-11-26 15:47 jacmet at uclibc.org
2007-11-25 23:30 ulf at uclibc.org
2007-11-25 14:49 ulf at uclibc.org
2007-11-23 15:46 jacmet at uclibc.org
2007-11-23 13:21 jacmet at uclibc.org
2007-11-23 11:44 jacmet at uclibc.org
2007-11-23 11:43 jacmet at uclibc.org
2007-11-23 12:50 ` Ivan Kuten
2007-11-23 12:33 ` Peter Korsgaard
2007-11-23 10:00 jacmet at uclibc.org
2007-11-23 9:46 jacmet at uclibc.org
2007-11-22 17:12 jacmet at uclibc.org
2007-08-21 12:09 aldot at uclibc.org
2007-07-17 15:19 ulf at uclibc.org
2007-07-08 13:20 aldot at uclibc.org
2007-01-15 16:02 aldot at uclibc.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080304121914.3879B120129@busybox.net \
--to=jacmet@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox