summaryrefslogtreecommitdiffstats
path: root/meta/packages/dbus/dbus-1.0.2
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2007-09-24 15:16:43 +0000
committerRoss Burton <ross@openedhand.com>2007-09-24 15:16:43 +0000
commitbb9d5bbbcb62d8ca6c9366e39ec357c503d1fa2b (patch)
tree98619531be9aa390c7aea1b816d9a5467679338b /meta/packages/dbus/dbus-1.0.2
parent4f06fd1e153b7fc51f0c1759ba43fd66000f9d14 (diff)
downloadpoky-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/dbus-1.0.2')
-rw-r--r--meta/packages/dbus/dbus-1.0.2/dbus-1.init17
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 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
79reload_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
79case "$1" in 89case "$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 ;;
95esac 108esac