<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I see. Thanks let me replace the symlink to the conf file with the actual conf file.<br>Still not sure how its working on all the other systems with the same setup.<br><br>Thanks.<br><br><br><br><div><div id="SkyDrivePlaceholder"></div>> Date: Mon, 18 Mar 2013 08:34:59 +0000<br>> From: james.hunt@ubuntu.com<br>> To: alphabit@outlook.com<br>> CC: upstart-devel@lists.ubuntu.com<br>> Subject: Re: Upstart (0.6.5) not retaining configuration. CentOS 6.2 64 Bit.<br>> <br>> On 15/03/13 16:39, Alpha Bit wrote:<br>> > Thanks for getting back.<br>> > <br>> > There isn't really any exotic filesystem that I am using. Also, /etc/init is not<br>> > a symbolic link.<br>> This is the problem then - symbolic links are not supported for jobs in /etc/init/:<br>> <br>> http://upstart.ubuntu.com/cookbook/#symbolic-links-don-t-work-in-etc-init<br>> <br>> It does appear that this behaviour was not documented in the 0.6.5 man pages.<br>> <br>> Kind regards,<br>> <br>> James.<br>> <br>> However myJob.conf file (sample conf) is a symbolic link.<br>> > Also, upstart/initctl detects the same file on all other systems that I have<br>> > with no issues. I don't need to reload-configuration on those systems and<br>> > whenever I reboot, the job gets started as expected.<br>> > <br>> > I noticed on the affected system that messagebus (dbus) is not running and since<br>> > the criteria for my start is on startup, I am thinking out loud here that the<br>> > startup event is not getting emitted by the Upstart. I don't really know the<br>> > inner workings of Upstart, but would that be a possibility? Does upstart need<br>> > messagebus/dbus daemon to be running? or does it use dbus as an interface and<br>> > doesn't really talk to the dbus daemon? I would have changed the start stanza to<br>> > be more explicit for. ex. start on runlevel [345] but the fact that the same<br>> > conf file works on all the other systems but one doesn't ratify this change.<br>> > <br>> > Thanks again for all the help.<br>> > <br>> > <br>> >> Date: Fri, 15 Mar 2013 08:43:04 +0000<br>> >> From: james.hunt@ubuntu.com<br>> >> To: alphabit@outlook.com<br>> >> CC: upstart-devel@lists.ubuntu.com<br>> >> Subject: Re: FW: Upstart (0.6.5) not retaining configuration. CentOS 6.2 64 Bit.<br>> >><br>> >> On 15/03/13 03:46, Alpha Bit wrote:<br>> >> ><br>> >> > Hello,<br>> >> ><br>> >> > First and foremost let me apologize if I am spamming the wrong list. I also<br>> >> > tried getting some help on the irc channel.<br>> >> ><br>> >> > I have upstart 0.6.5 that CentOS ships with RHEL 6.2 64 bit. I have placed my<br>> >> > custom .conf (say myJob.conf) file in /etc/init/ folder. After that I did a<br>> >> > reboot and an initctl list, but I didn't see myJob in the list. I then did a<br>> >> > initctl reload-configuration and an initctl list and I then see myJob in the<br>> >> > list. I can also issue initclt start myJob with no issues and it works fine. The<br>> >> > problem is after I reboot and an initctl list, myJob is again missing from the<br>> >> > list. Its like I have to run reload-configuration on every reboot.<br>> >> > The permissions look correct (root owned, world readable).<br>> >> > I know reload-configuration is valid until the next reboot only, but how do I<br>> >> > fix this issue? Upstart would ideally picks all the new .conf file on every<br>> >> > reboot anyways, but just not in this case.<br>> >> ><br>> >> > myJob.conf looks like below:<br>> >> > --------<br>> >> > start on startup<br>> >> > stop on runlevel[016]<br>> >> > respawn<br>> >> > doSomething<br>> >> > ----------<br>> >> ><br>> >> > Any help/pointer is very much appreciated.<br>> >> ><br>> >> > Thanks.<br>> >> ><br>> >> ><br>> >> ><br>> >> ><br>> >> You should not need to reboot - Upstart uses inotify to watch /etc/init/ so that<br>> >> any new job configuration files are parsed "immediately". However, when Upstart<br>> >> first starts, it recurses through /etc/init manually (akin to 'initctl<br>> >> reload-configuration') so it can read the existing .conf files at boot time.<br>> >><br>> >> Some questions:<br>> >><br>> >> (1) Are you using some sort of exotic remote/overlay filesystem that does not<br>> >> support inotify?<br>> >> (2) Is /etc/init/ a symbolic link?<br>> >> (3) Is myJob.conf a symbolic link?<br>> >> (4) Do you see this behaviour with every job you create? Try creating a minimal<br>> >> job containing something like:<br>> >><br>> >> exec sleep 1<br>> >><br>> >> ... and see if initctl recognises it as valid.<br>> >><br>> >> From what you've said, I'd guess the issue is probably (1).<br>> >><br>> >> Kind regards,<br>> >><br>> >> James.<br>> >> --<br>> >> James Hunt<br>> >> ____________________________________<br>> >> http://upstart.ubuntu.com/cookbook<br>> >> http://upstart.ubuntu.com/cookbook/upstart_cookbook.pdf<br>> > <br>> > <br>> <br>> Kind regards,<br>> <br>> James Hunt<br>> ____________________________________<br>> http://upstart.ubuntu.com/cookbook<br>> http://upstart.ubuntu.com/cookbook/upstart_cookbook.pdf<br></div> </div></body>
</html>