Well that was a quick and easy test :) I would like to add an additional question, if in my mountall.conf I place a loop to go through allmounted items, as per the output of mount, and issued a similar line to below, wouldI need to use 'anything' to tie the MOUNTPOINT and TYPE to the specific call? eg. while read -r M Tdo initctl emit mounted MOUNTPOINT=$M TYPE=$Tdone< <(mount | awk '{print $3,$5}') Will this be enough for anything listening or would MOUNTPOINT and TYPE need to last longer and sosomehow be individual, maybe using instance? (not a full bottle on how to use that just yet) The idea I am shooting for is to allow others to potentially use 'start on mounted' for anything within the system. cheersgrail
From: grai...@hotmail.com To: upstart-devel@lists.ubuntu.com Subject: RE: What emits mounted event? Date: Tue, 24 May 2011 00:46:15 +0000 Hi James 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 greatpiece of literature for those of us trying to learn :) ) I will definitely take your advice on raising examples cheersgrail > Date: Mon, 23 May 2011 20:14:22 +0100 > From: james.h...@ubuntu.com > To: grai...@hotmail.com > CC: upstart-devel@lists.ubuntu.com > Subject: Re: What emits mounted event? > > Hi Grail, > > On 23/05/11 05:09, Grail Dane wrote: > > Ahhh ... I thought it might have been ... hence my issue :( > > > > In that case, is there an alternative if you are using simple mount command? > Although a vanilla Upstart system won't provide you with the mounted > event, you can of course emit such an event yourself: > > initctl emit mounted MOUNTPOINT=/var/run ... > > > > > cheers > > grail > > > > PS. > > I have been recently reading through the Cookbook that was talked about > > here a little while back. > > Unfortunately it is Ubuntu centric and does not give the standard option > > as well as the Ubuntu > > version :( (maybe others would be interested in starting an upstart > > cookbook) > The cookbook is Ubuntu-centric in a sense, but we have gone to some > pains to point out Ubuntu-specific differences: > > http://upstart.ubuntu.com/cookbook/#ubuntu-specific > http://upstart.ubuntu.com/cookbook/#ubuntu-transient > > The fact that it does tend to cover Ubuntu more fully is because the > authors are working with Upstart on Ubuntu and also the O/S most users > are most likely to come across with Upstart installed is Ubuntu. > > That said, it makes a lot of sense to outline where appropriate the > "generic" methodology so we'll try to bear this in mind for future > updates. If you have concrete examples of where this would be helpful, > please raise bugs on the cookbook itself: > > https://bugs.launchpad.net/upstart-cookbook/+filebug > > > So I have been struggling to find options to create scripts based on > > standard applications (by > > standard i am talking from an (C)LFS point of view and without any other > > SysV reliance) > Again, please raise bugs for specific scenarios. > > Regards, > > James > > > > >> Date: Mon, 23 May 2011 13:40:59 +1000 > >> From: apoll...@debian.org > >> To: grai...@hotmail.com > >> CC: upstart-devel@lists.ubuntu.com > >> Subject: Re: What emits mounted event? > >> > >> On Mon, May 23, 2011 at 03:28:57AM +0000, Grail Dane wrote: > >> > > >> > 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 > >> > >> I can't help with your specific problem, but the mountall program > > (from the > >> mountall package) emits the mounted event (at least in Ubuntu 10.04) > >> > >> regards > >> > >> Andrew > > > -- upstart-devel mailing list upstart-devel@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/upstart-devel
-- upstart-devel mailing list upstart-devel@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/upstart-devel