workers.conf+worker.conf example in 6.14.2 could be simplified

Bug #1198696 reported by Chris Pick on 2013-07-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Upstart Cookbook
Undecided
Unassigned

Bug Description

I was looking at the workers.conf+worker.conf example at the end of http://upstart.ubuntu.com/cookbook/#another-instance-example and workers.conf's post-stop script looked a little brittle, particularly the parsing in:
for inst in `initctl list|grep "^worker "|awk '{print $2}'|tr -d ')'|tr -d '('`

Would it be simpler to remove the workers.conf's post-stop script altogether and instead add a 'stop on stopping workers' line to worker.conf?

I'll add my suggestion as a patch to this ticket to see if it makes sense for inclusion.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers