/etc/cron.daily/apt spurious error message when dbus stopped

Bug #115397 reported by dasdda
4
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: apt

I like to run my system with dbus stopped (but I still have dbus installed). I get a daily e-mail warning:

/etc/cron.daily/apt:
Failed to open connection to system message bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

This deluge of useless warnings has made me ignore all cron-originated mail, ultimately leading to loss of data (the daily backup system wasn't working, and I didn't realize it).

The following snippet in /etc/cron.daily/apt should redirect output to /dev/null, so that dbus-send errors are ignored:

        if which dbus-send >/dev/null; then
            dbus-send --system / app.apt.dbus.updated boolean:true

Surely dbus-send errors are not something to bother the admin about, right?

Related branches

Michael Vogt (mvo)
Changed in apt:
status: New → Confirmed
Revision history for this message
Paul Sladen (sladen) wrote :

1592. By Paul Sladen <email address hidden> 10 hours ago

* Have 'cron.daily/apt' send D-Bus doesn't exist error messages
  to the bit bucket. Thanks to 'dasdda'. (LP: #115397)

Changed in apt:
status: Confirmed → Fix Committed
Revision history for this message
Michael Vogt (mvo) wrote :

apt (0.7.6ubuntu12) gutsy; urgency=low

  [ Michael Vogt ]
  * cmdline/apt-mark:
    - Fix chmoding after have renamed the extended-states file
      (thanks to Laurent Bigonville, LP: #140019)
  * apt-pkg/deb/debmetaindex.cc: comparison with string literal results
      in unspecified behaviour;
  * Reset curl options and timestamp between downloaded files. Thanks to
    Ryan Murray <email address hidden> for the patch

  [Paul Sladen]
  * Have 'cron.daily/apt' send D-Bus doesn't exist error messages
    to the bit bucket. Thanks to 'dasdda'. (LP: #115397)

 -- Michael Vogt <email address hidden> Wed, 03 Oct 2007 02:17:45 +0200

Changed in apt:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.