> the "pre-start script" is not running at all. The file will never be
created.
On the contrary, the pre-start script will run. But 'mounted' is an
event that is emitted once for *each* filesystem that is mounted, and
the root filesystem is *not* the first filesystem to trigger this event
- the virtual filesystems are mounted first, then fsck is run for the
rootfs, then the rootfs is remounted read-write.
So the job you show here will trigger, immediately try to write to /etc,
and fail - which is probably long enough on your system for the rest of
the filesystems to come up, so no further jobs will be started because
there's already one instance of the job in progress.
See the mounted(7), upstart-events(7) manpages for more information
about the mounted event. You probably need to change your job to use
either 'start on mounted MOUNTPOINT=/' or 'start on filesystem'.
Closing this bug as invalid; since the pre-start scripts in Ubuntu are
all working reliably, and your job has a definite race condition in it,
there's no evidence of an upstart bug here.
** Changed in: upstart (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/834769
Title:
upstart doesn't run "pre-start script"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/834769/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs