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/dbus-1.0.2/dbus-1.init | |
parent | 4f06fd1e153b7fc51f0c1759ba43fd66000f9d14 (diff) | |
download | openembedded-core-bb9d5bbbcb62d8ca6c9366e39ec357c503d1fa2b.tar.gz openembedded-core-bb9d5bbbcb62d8ca6c9366e39ec357c503d1fa2b.tar.bz2 openembedded-core-bb9d5bbbcb62d8ca6c9366e39ec357c503d1fa2b.tar.xz openembedded-core-bb9d5bbbcb62d8ca6c9366e39ec357c503d1fa2b.zip |
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/dbus-1.0.2/dbus-1.init')
-rw-r--r-- | meta/packages/dbus/dbus-1.0.2/dbus-1.init | 17 |
1 files changed, 15 insertions, 2 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 88fe7e33d..0725083c6 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() rm -f $PIDFILE } +reload_it() +{ + echo -n "Reloading $DESC config: " + dbus-send --print-reply --system --type=method_call \ + --dest=org.freedesktop.DBus \ + / org.freedesktop.DBus.ReloadConfig > /dev/null + # hopefully this is enough time for dbus to reload it's config file. + echo "done." +} + case "$1" in start) start_it_up @@ -83,13 +93,16 @@ case "$1" in stop) shut_it_down ;; - restart|force-reload) + reload|force-reload) + reload_it + ;; + restart) shut_it_down sleep 1 start_it_up ;; *) - echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload}" >&2 + echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2 exit 1 ;; esac |