<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 4 April 2016 at 17:53, Serge Hallyn <span dir="ltr"><<a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">Quoting Martinx - ジェームズ (<a href="mailto:thiagocmartinsc@gmail.com">thiagocmartinsc@gmail.com</a>):<br>
> On 31 March 2016 at 00:24, Martinx - ジェームズ <<a href="mailto:thiagocmartinsc@gmail.com">thiagocmartinsc@gmail.com</a>><br>
> wrote:<br>
><br>
> > On 30 March 2016 at 17:46, Serge Hallyn <<a href="mailto:serge.hallyn@ubuntu.com">serge.hallyn@ubuntu.com</a>> wrote:<br>
> ><br>
> >> Quoting Martinx - ジェームズ (<a href="mailto:thiagocmartinsc@gmail.com">thiagocmartinsc@gmail.com</a>):<br>
> >> > On 30 March 2016 at 14:08, Serge Hallyn <<a href="mailto:serge.hallyn@ubuntu.com">serge.hallyn@ubuntu.com</a>><br>
> >> wrote:<br>
> >> ><br>
> >> > > Quoting Martinx - ジェームズ (<a href="mailto:thiagocmartinsc@gmail.com">thiagocmartinsc@gmail.com</a>):<br>
> >> > > > Guys,<br>
> >> > > ><br>
> >> > > >  Almost all daemons that I install on Xenial, I'm seeing the<br>
> >> following<br>
> >> > ><br>
> >> > > Hi,<br>
> >> > ><br>
> >> > > could you give a specific example?<br>
> >> > ><br>
> >> > > thanks,<br>
> >> > > -serge<br>
> >> > ><br>
> >> > > > error:<br>
> >> > > ><br>
> >> > > > ---<br>
> >> > > > initctl: Unable to connect to Upstart: Failed to connect to socket<br>
> >> > > > /com/ubuntu/upstart: Connection refused<br>
> >> > > > ---<br>
> >> > > ><br>
> >> > > >  It is running systemd by default, so, why those upstart jobs are<br>
> >> called?<br>
> >> > ><br>
> >> ><br>
> >> > Sure! Here are the examples...<br>
> >> ><br>
> >> > apt install apache2<br>
> >> > .....<br>
> >> > Enabling conf serve-cgi-bin.<br>
> >> > Enabling site 000-default.<br>
> >> > initctl: Unable to connect to Upstart: Failed to connect to socket<br>
> >> > /com/ubuntu/upstart: Connection refused<br>
> >> > insserv: warning: script 'cron' missing LSB tags and overrides<br>
> >> > insserv: Default-Start undefined, assuming empty start runlevel(s) for<br>
> >> > script `cron'<br>
> >> > insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for<br>
> >> > script `cron'<br>
> >> > Processing triggers for systemd (229-3ubuntu1) ...<br>
> >> > ....<br>
> >><br>
> >> I'm not seeing htat.  could you show the output of<br>
> >><br>
> >> dpkg -l | egrep -e '(systemd|upstart|init)'<br>
> >><br>
> >> ?<br>
> >><br>
> ><br>
> > Mmm... Interesting...<br>
> ><br>
> > Here it is:<br>
> ><br>
> > <a href="https://paste.ubuntu.com/15564855/" rel="noreferrer" target="_blank">https://paste.ubuntu.com/15564855/</a><br>
> ><br>
> > This box was upgraded from Ubuntu 14.04...<br>
> ><br>
><br>
> More interesting, my 16.04 Desktop, that I installed from Xenial ISO,<br>
> doesn't have this problem, only if upgrade from 14.04...<br>
<br>
</div></div>eureka - the key is /etc/init.d/cron.  If it is a symbolic link to<br>
/lib/init/upstart-job, then upstart ends up being called at some<br>
point.  In systems which did not start at 14.04, cron is its own<br>
sysvinit file.  Reinstatating the full file on an upgraded system<br>
fixes this.<br>
<br>
Not sure whether this should be fixed in cron itself, or elsewhere...<br>
<span class=""><font color="#888888"><br>
-serge<br>
</font></span></blockquote></div><br></div><div class="gmail_extra">Mmmm... I have the following files under /etc/init.d:</div><div class="gmail_extra"><br></div><div class="gmail_extra">Symlink:</div><div class="gmail_extra"><br></div><div class="gmail_extra">cron -> /lib/init/upstart-job<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">And a file:</div><div class="gmail_extra"><br></div><div class="gmail_extra">cron.dpkg-new<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Maybe, during "do-release-upgrade" from 14.04 to 16.04, it didn't upgraded that file / link...</div><div class="gmail_extra"><br></div><div class="gmail_extra">This looks like an upgrade bug!</div><div class="gmail_extra"><br></div><div class="gmail_extra">How to manually fix it?</div><div class="gmail_extra"><br></div><div class="gmail_extra">rm /etc/init.d/cron</div><div class="gmail_extra">mv /etc/init.d/cron.dpkg-new /etc/init.d/cron</div><div class="gmail_extra"><br></div><div class="gmail_extra">?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Cheers! </div></div>