<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi James<div><br></div><div>Thank you very much for the suggestion below. I did actually find something on this in the Cookbook (like I said I think it is a great</div><div>piece of literature for those of us trying to learn :) )</div><div><br></div><div>I will definitely take your advice on raising examples</div><div><br></div><div>cheers</div><div>grail<br><br>> Date: Mon, 23 May 2011 20:14:22 +0100<br>> From: james.hunt@ubuntu.com<br>> To: grail69@hotmail.com<br>> CC: upstart-devel@lists.ubuntu.com<br>> Subject: Re: What emits mounted event?<br>> <br>> Hi Grail,<br>> <br>> On 23/05/11 05:09, Grail Dane wrote:<br>> > Ahhh ... I thought it might have been ... hence my issue :(<br>> > <br>> > In that case, is there an alternative if you are using simple mount command?<br>> Although a vanilla Upstart system won't provide you with the mounted<br>> event, you can of course emit such an event yourself:<br>> <br>> initctl emit mounted MOUNTPOINT=/var/run ...<br>> <br>> > <br>> > cheers<br>> > grail<br>> > <br>> > PS.<br>> > I have been recently reading through the Cookbook that was talked about<br>> > here a little while back.<br>> > Unfortunately it is Ubuntu centric and does not give the standard option<br>> > as well as the Ubuntu<br>> > version :( (maybe others would be interested in starting an upstart<br>> > cookbook)<br>> The cookbook is Ubuntu-centric in a sense, but we have gone to some<br>> pains to point out Ubuntu-specific differences:<br>> <br>> http://upstart.ubuntu.com/cookbook/#ubuntu-specific<br>> http://upstart.ubuntu.com/cookbook/#ubuntu-transient<br>> <br>> The fact that it does tend to cover Ubuntu more fully is because the<br>> authors are working with Upstart on Ubuntu and also the O/S most users<br>> are most likely to come across with Upstart installed is Ubuntu.<br>> <br>> That said, it makes a lot of sense to outline where appropriate the<br>> "generic" methodology so we'll try to bear this in mind for future<br>> updates. If you have concrete examples of where this would be helpful,<br>> please raise bugs on the cookbook itself:<br>> <br>> https://bugs.launchpad.net/upstart-cookbook/+filebug<br>> <br>> > So I have been struggling to find options to create scripts based on<br>> > standard applications (by<br>> > standard i am talking from an (C)LFS point of view and without any other<br>> > SysV reliance)<br>> Again, please raise bugs for specific scenarios.<br>> <br>> Regards,<br>> <br>> James<br>> <br>> > <br>> >> Date: Mon, 23 May 2011 13:40:59 +1000<br>> >> From: apollock@debian.org<br>> >> To: grail69@hotmail.com<br>> >> CC: upstart-devel@lists.ubuntu.com<br>> >> Subject: Re: What emits mounted event?<br>> >><br>> >> On Mon, May 23, 2011 at 03:28:57AM +0000, Grail Dane wrote:<br>> >> ><br>> >> > Hi All<br>> >> > I have been looking over some of the Ubuntu upstart scripts to see<br>> > what can help me.<br>> >> > I tried using the mounted-varrun.conf script but for some reason my<br>> > system doesn't seem to pass on thefact that /var/run is mounted. I have<br>> > found though that if after the system has started and I login, I am able<br>> > to enter the following:<br>> >> > start mounted-varrun<br>> >> > This does then successfully follow the script and perform the<br>> > actions as specified<br>> >> > Is anyone able to tell me why this is not captured during the<br>> > startup process?<br>> >> > cheersgrail<br>> >><br>> >> I can't help with your specific problem, but the mountall program<br>> > (from the<br>> >> mountall package) emits the mounted event (at least in Ubuntu 10.04)<br>> >><br>> >> regards<br>> >><br>> >> Andrew<br>> > <br>> <br></div> </body>
</html>