consecutive runs of "init-checkconf" produce errors

Bug #770527 reported by Mark Russell
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
upstart (Ubuntu)
Fix Released
Undecided
James Hunt

Bug Description

Binary package hint: upstart

lsb_release -rd:
Description: Ubuntu 11.04
Release: 11.04

apt-cache policy upstart:
upstart:
  Installed: 0.9.7-1
  Candidate: 0.9.7-1

I am trying to programmatically run `init-checkconf` on the entire /etc/init folder and seem to have found a race condition. Basically I want to do something like `for UPSTART_JOB in /etc/init/*.conf; do init-checkconf $UPSTART_JOB; done` but find that I can't do so without putting a sleep after each check.

How to reproduce:
`init-checkconf /etc/init/atd.conf && init-checkconf /etc/init/cron.conf`

Expected results:
File /etc/init/atd.conf: syntax ok
File /etc/init/cron.conf: syntax ok

Actual results:
File /etc/init/atd.conf: syntax ok
ERROR: failed to ask Upstart to check conf file

James Hunt (jamesodhunt)
Changed in upstart (Ubuntu):
status: New → Confirmed
assignee: nobody → James Hunt (jamesodhunt)
James Hunt (jamesodhunt)
Changed in upstart (Ubuntu):
status: Confirmed → Fix Committed
status: Fix Committed → In Progress
James Hunt (jamesodhunt)
Changed in upstart (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.