The synchronisation example in 11.6 doesn't work
Bug #1160370 reported by
David Ireland
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.
To post a comment you must log in.
You could do something like this instead:
pre-start script
# "lock"
until start synchronise; do sleep 1; done
end script