init: should error on duplicate stanzas

Bug #567691 reported by Scott James Remnant (Canonical) on 2010-04-21
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Currently when init parses a conf file, if you have duplicates of any stanza (e.g. "start on" or "exec") it uses the last one and silently ignores any previous.

This was done on the basis it would allow an easy way to do "overrides", just parse one file followed by another. It was a bad idea.

Instead init should error on duplicates of any new stanza, or any duplicate of an old stanza in a conf file that contains any new stanza. (Not just error unconditionally because of backwards compat, but we could at least warn somewhere)

Changed in upstart:
status: New → Triaged
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers