<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<font class="Apple-style-span" face="Tahoma" size="2">Hi All</font><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">I have been looking over some of the Ubuntu upstart scripts to see what can help me.</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">I tried using the mounted-varrun.conf script but for some reason my system doesn't seem to pass on the</div><div style="font-family: Tahoma; font-size: 10pt; ">fact that /var/run is mounted. I have found though that if after the system has started and I login, I am able </div><div style="font-family: Tahoma; font-size: 10pt; ">to enter the following:</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">start mounted-varrun</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">This does then successfully follow the script and perform the actions as specified <img src="http://gfx1.hotmail.com/mail/w4/pr04/ltr/emo/confused_smile.gif" title="Confused smile" alt="Confused smile" width="19" height="19" style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: text-bottom; "></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">Is anyone able to tell me why this is not captured during the startup process?</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">cheers</div><div style="font-family: Tahoma; font-size: 10pt; ">grail</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">PS. In case anyone is not sure, below is the script:</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div><div><font class="Apple-style-span" face="Tahoma" size="2">start on mounted MOUNTPOINT=/var/run TYPE=tmpfs</font></div><div><font class="Apple-style-span" face="Tahoma" size="2">env MOUNTPOINT=/var/run</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2">task</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2">script</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> : > "${MOUNTPOINT}/utmp"</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> chmod 664 "${MOUNTPOINT}/utmp"</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> chgrp utmp "${MOUNTPOINT}/utmp"</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> [ -d /dev/.initramfs/varrun ] && cp -a /dev/.initramfs/varrun/* "${MOUNTPOINT}" || true</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> mkdir -p /var/run/sendsigs.omit.d</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> # Background the initial motd seeding</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"> [ -d "/etc/update-motd.d" ] && run-parts --lsbsysinit /etc/update-motd.d > /var/run/motd &</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2">end script</font></div></div> </body>
</html>