[Bug 770527] Re: consecutive runs of "init-checkconf" produce errors

James Hunt 770527 at bugs.launchpad.net
Wed Mar 14 14:39:00 UTC 2012


** Changed in: upstart (Ubuntu)
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/770527

Title:
  consecutive runs of "init-checkconf" produce errors

Status in “upstart” package in Ubuntu:
  Fix Released

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/770527/+subscriptions




More information about the foundations-bugs mailing list