What emits mounted event?
Grail Dane
grail69 at hotmail.com
Mon May 23 03:28:57 UTC 2011
Hi All
I have been looking over some of the Ubuntu upstart scripts to see what can help me.
I tried using the mounted-varrun.conf script but for some reason my system doesn't seem to pass on thefact that /var/run is mounted. I have found though that if after the system has started and I login, I am able to enter the following:
start mounted-varrun
This does then successfully follow the script and perform the actions as specified
Is anyone able to tell me why this is not captured during the startup process?
cheersgrail
PS. In case anyone is not sure, below is the script:
start on mounted MOUNTPOINT=/var/run TYPE=tmpfsenv MOUNTPOINT=/var/run
task
script : > "${MOUNTPOINT}/utmp" chmod 664 "${MOUNTPOINT}/utmp" chgrp utmp "${MOUNTPOINT}/utmp"
[ -d /dev/.initramfs/varrun ] && cp -a /dev/.initramfs/varrun/* "${MOUNTPOINT}" || true
mkdir -p /var/run/sendsigs.omit.d
# Background the initial motd seeding [ -d "/etc/update-motd.d" ] && run-parts --lsbsysinit /etc/update-motd.d > /var/run/motd &
end script
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20110523/18ace716/attachment.html>
More information about the upstart-devel
mailing list