diff options
author | Ross Burton <ross@openedhand.com> | 2007-09-24 15:16:43 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2007-09-24 15:16:43 +0000 |
commit | bb9d5bbbcb62d8ca6c9366e39ec357c503d1fa2b (patch) | |
tree | 98619531be9aa390c7aea1b816d9a5467679338b /meta/packages/dbus | |
parent | 4f06fd1e153b7fc51f0c1759ba43fd66000f9d14 (diff) | |
download | poky-bb9d5bbbcb62d8ca6c9366e39ec357c503d1fa2b.tar.gz |
dbus: add reload action
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2777 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/dbus')
-rw-r--r-- | meta/packages/dbus/dbus-1.0.2/dbus-1.init | 17 | ||||
-rw-r--r-- | meta/packages/dbus/dbus_1.0.2.bb | 2 |
2 files changed, 16 insertions, 3 deletions
diff --git a/meta/packages/dbus/dbus-1.0.2/dbus-1.init b/meta/packages/dbus/dbus-1.0.2/dbus-1.init index 88fe7e33db..0725083c69 100644 --- a/meta/packages/dbus/dbus-1.0.2/dbus-1.init +++ b/meta/packages/dbus/dbus-1.0.2/dbus-1.init | |||
@@ -76,6 +76,16 @@ shut_it_down() | |||
76 | rm -f $PIDFILE | 76 | rm -f $PIDFILE |
77 | } | 77 | } |
78 | 78 | ||
79 | reload_it() | ||
80 | { | ||
81 | echo -n "Reloading $DESC config: " | ||
82 | dbus-send --print-reply --system --type=method_call \ | ||
83 | --dest=org.freedesktop.DBus \ | ||
84 | / org.freedesktop.DBus.ReloadConfig > /dev/null | ||
85 | # hopefully this is enough time for dbus to reload it's config file. | ||
86 | echo "done." | ||
87 | } | ||
88 | |||
79 | case "$1" in | 89 | case "$1" in |
80 | start) | 90 | start) |
81 | start_it_up | 91 | start_it_up |
@@ -83,13 +93,16 @@ case "$1" in | |||
83 | stop) | 93 | stop) |
84 | shut_it_down | 94 | shut_it_down |
85 | ;; | 95 | ;; |
86 | restart|force-reload) | 96 | reload|force-reload) |
97 | reload_it | ||
98 | ;; | ||
99 | restart) | ||
87 | shut_it_down | 100 | shut_it_down |
88 | sleep 1 | 101 | sleep 1 |
89 | start_it_up | 102 | start_it_up |
90 | ;; | 103 | ;; |
91 | *) | 104 | *) |
92 | echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload}" >&2 | 105 | echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2 |
93 | exit 1 | 106 | exit 1 |
94 | ;; | 107 | ;; |
95 | esac | 108 | esac |
diff --git a/meta/packages/dbus/dbus_1.0.2.bb b/meta/packages/dbus/dbus_1.0.2.bb index 0cfb4ebf46..7bf0a8634d 100644 --- a/meta/packages/dbus/dbus_1.0.2.bb +++ b/meta/packages/dbus/dbus_1.0.2.bb | |||
@@ -6,7 +6,7 @@ DESCRIPTION = "message bus system for applications to talk to one another" | |||
6 | LICENSE = "GPL" | 6 | LICENSE = "GPL" |
7 | DEPENDS = "expat glib-2.0 virtual/libintl" | 7 | DEPENDS = "expat glib-2.0 virtual/libintl" |
8 | 8 | ||
9 | PR = "r2" | 9 | PR = "r3" |
10 | 10 | ||
11 | SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ | 11 | SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ |
12 | file://tmpdir.patch;patch=1 \ | 12 | file://tmpdir.patch;patch=1 \ |