Add hook to attach Upstart override files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Wishlist
|
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.
Details
=====
Since the introduction of Upstart override files:
http://
... it is now possible to create a "/etc/init/
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/
".override" file, attach the override file to the bug.
Assuming a package has a config file specified as "/etc/init/
in shell syntax...
conf_
override_
if [ -e "$override_file" ]
then
# need to save packages override file corresponding to foo.conf
fi
Related branches
- Martin Pitt: Approve
-
Diff: 117 lines (+53/-7) (has conflicts)4 files modifiedapport/hookutils.py (+29/-1)
data/general-hooks/ubuntu.py (+8/-2)
data/package-hooks/source_ubiquity.py (+2/-4)
debian/changelog (+14/-0)
Changed in apport (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
Changed in apport (Ubuntu): | |
status: | Triaged → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
This bug was fixed in the package apport - 1.21.2-0ubuntu7
---------------
apport (1.21.2-0ubuntu7) oneiric; urgency=low
[ Martin Pitt ] hooks/ubuntu. py: Fix calling of add_info() in the __main__
* data/general-
test code.
[ Brian Murray ] hooks/source_ ubiquity. py: outputs (LP: #812738) hookutils. py: hooks/ubuntu. py:
* data/package-
- collect all logs using root_command_
* apport/
- check to see if the package has any upstart override files
* data/general-
- when reporting a problem use the upstart override check (LP: #803977)
-- Martin Pitt <email address hidden> Fri, 22 Jul 2011 16:51:22 +0200