I believe this happens because of the way restart happens in a single event which changes the job's goal from stop, to start. At no point is a new job object created, so the newly parsed configuration is not present. This also probably has a lot to do with bug #703800 which causes restart to not work if there is a pre-stop. I imagine they will have the same fix, but are not the same bug.
Thomas, I have confirmed this on natty:
upstart: us.archive. ubuntu. com/ubuntu/ natty/main amd64 Packages dpkg/status
Installed: 0.6.7-5
Candidate: 0.6.7-6
Version table:
0.6.7-6 0
500 http://
*** 0.6.7-5 0
100 /var/lib/
I believe this happens because of the way restart happens in a single event which changes the job's goal from stop, to start. At no point is a new job object created, so the newly parsed configuration is not present. This also probably has a lot to do with bug #703800 which causes restart to not work if there is a pre-stop. I imagine they will have the same fix, but are not the same bug.