Some stanzas need negate option to override

Bug #968931 reported by Tuomo Tanskanen
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
upstart
Confirmed
Undecided
Unassigned

Bug Description

Some stanzas are currently impossible to override using override files: task, respawn, expect, env, emits, manual, debug to name a few. Task, respawn, expect and env are the important ones, which would be helpful to negate sometimes while debugging.

Revision history for this message
Tuomo Tanskanen (tuomotanskanen) wrote :

Also if https://bugs.launchpad.net/upstart/+bug/282854 is ever implemented, a way to negate those should be available.

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Agreed, this is needed to make the override files really useful.

Changed in upstart:
status: New → Confirmed
Revision history for this message
John Whitley (whitley) wrote :

I've just run into a case where being unable to negate respawn in an override file is definitely limiting. For example, I'm using an automated provisioning environment (Puppet, as it happens, but applies to Chef or any other such system). The main /etc/init/job.conf file is the "production" job configuration. The provisioner may lay down /etc/init/job.override to change job settings for the "development" environment. In our case, we need to negate respawn as the development-mode for the job runs the service via a watchdog with reload-on-changes (node.js' supervisor module). If anything goes wrong with the service, supervisor's restart limit and upstart's respawn tend to interact badly, causing a job that perpetually fails. Yes, I can mess with respawn limit, but that's not a truly robust solution.

I've found others have run into similar difficulties with overrides from a lack of a "norespawn" style stanza, e.g. http://oss.clusterlabs.org/pipermail/pacemaker/2012-February/013324.html

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.