summaryrefslogtreecommitdiffstats
path: root/meta/packages/dbus/dbus-1.0.2/dbus-1.init
diff options
context:
space:
mode:
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.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