The synchronisation example in 11.6 doesn't work

Bug #1160370 reported by David Ireland
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Upstart Cookbook
New
Undecided
Unassigned

Bug Description

It's claim that this, will obtain a lock

pre-start script
  # "lock"
  start synchronise || true
end script

but obviously, if the lock service is already running, it will still succeed. I.e. this will succeed without obtaining the lock.

Revision history for this message
David Ireland (e-david) wrote :

You could do something like this instead:

pre-start script
  # "lock"
  until start synchronise; do sleep 1; done
end script

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.