diff options
author | Sjoerd Simons <sjoerd@debian.org> | 2006-11-14 15:33:39 +0000 |
---|---|---|
committer | Sjoerd Simons <sjoerd@debian.org> | 2006-11-14 15:33:39 +0000 |
commit | f60ba0cdf3026d32eee3f4ea155c6048dc0be711 (patch) | |
tree | 6b5642cf405c352f21511114c80c2c9ff5b38336 /debian/dbus.init | |
parent | 47e690e211d56069d7675932734486605487300c (diff) | |
download | dbus-f60ba0cdf3026d32eee3f4ea155c6048dc0be711.tar.gz |
* Target unstable. Since 0.94 only bugfixes and cleanups went in.
* Also generate the machine-id on reload if it doesn't exist and reload the
bus on upgrades. (Closes: #357247)
* patches/40_dbus_launch_get_uuid.patch
+ Dropped, fixed upstream
git-svn-id: svn+ssh://svn.debian.org/svn/pkg-utopia/packages/unstable/dbus@1141 ceb527fc-18e6-0310-9fe2-813c157c29e7
Diffstat (limited to 'debian/dbus.init')
-rw-r--r-- | debian/dbus.init | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/debian/dbus.init b/debian/dbus.init index 46460670..cbb5c67a 100644 --- a/debian/dbus.init +++ b/debian/dbus.init @@ -36,6 +36,13 @@ fi test "$ENABLED" != "0" || exit 0 +create_machineid() { + # Create machine-id file + if [ -x $UUIDGEN ]; then + $UUIDGEN $UUIDGEN_OPTS + fi +} + start_it_up() { if [ ! -d $PIDDIR ]; then @@ -52,10 +59,7 @@ start_it_up() rm -f $PIDFILE fi fi - # Create machine-id file - if [ -x $UUIDGEN ]; then - $UUIDGEN $UUIDGEN_OPTS - fi + create_machineid log_daemon_msg "Starting $DESC" "$NAME" start-stop-daemon --start --quiet --pidfile $PIDFILE \ @@ -84,6 +88,7 @@ shut_it_down() reload_it() { + create_machineid log_action_begin_msg "Reloading $DESC config" dbus-send --print-reply --system --type=method_call \ --dest=org.freedesktop.DBus \ |