Add hook to attach Upstart override files

Bug #803977 reported by James Hunt
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Brian Murray

Bug Description

As a follow-on to bug 803963, it would be great if apport could also attach any Upstart "override files" that have been created for a packages Upstart jobs.


Since the introduction of Upstart override files:

... it is now possible to create a "/etc/init/<job>.override" file that
can potentially completely change the behaviour of a service that is
controlled by Upstart.

As such, it would be great if apport were to look automatically attach
the associated ".override" file(s) to bug reports for a package.

Strategy should be to determine if any of the packages conffiles are
Upstart Job Configuration Files (files that match the pattern
"^/etc/init/.*\.conf") and if any of these have a corresponding
".override" file, attach the override file to the bug.

Assuming a package has a config file specified as "/etc/init/foo.conf",
in shell syntax...


  if [ -e "$override_file" ]
    # need to save packages override file corresponding to foo.conf

Related branches

Changed in apport (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
Changed in apport (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 1.21.2-0ubuntu7

apport (1.21.2-0ubuntu7) oneiric; urgency=low

  [ Martin Pitt ]
  * data/general-hooks/ Fix calling of add_info() in the __main__
    test code.

  [ Brian Murray ]
  * data/package-hooks/
    - collect all logs using root_command_outputs (LP: #812738)
  * apport/
    - check to see if the package has any upstart override files
  * data/general-hooks/
    - when reporting a problem use the upstart override check (LP: #803977)
 -- Martin Pitt <email address hidden> Fri, 22 Jul 2011 16:51:22 +0200

Changed in apport (Ubuntu):
status: In Progress → 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.