--- On Wed, 7/20/11, Christian Kastner <deb...@kvr.at> wrote: > From: Christian Kastner <deb...@kvr.at> > Subject: Re: Bug#634215: Having init.d/cron run early breaks the semantics of > @reboot time specification > To: "Regid Ichira" <regi...@yahoo.com>, 634...@bugs.debian.org > Date: Wednesday, July 20, 2011, 10:06 PM > On 07/17/2011 08:26 PM, Regid Ichira > wrote: > > However, I'm absolutely certain of having considered this > solution in > the past and ultimately dismissing it -- I currently can't > recall why, > though. I'll leave this bug open until I remember why...
In the meanwhile, I suggest: --- crontab.5 2011-07-21 23:47:20.000000000 +0300 +++ crontab.5.new 2011-07-21 23:59:02.000000000 +0300 @@ -232,6 +232,14 @@ .br @hourly Run once an hour, "0 * * * *". .br +.PP +Do note that startup, as far as @reboot is concerned, is the time when +the +.IR cron (8) +daemon startup. In particular, it may be before some system daemons, +or other facilities, were startup. This is due to the boot order +sequence of the machine. + .SH EXAMPLE CRON FILE .nf > > > --- cron 2011-07-17 > 21:04:04.000000000 +0300 > > +++ cron.new 2011-07-17 > 21:04:34.000000000 +0300 > > @@ -3,7 +3,7 @@ > > # > > ### BEGIN INIT INFO > > # Provides: > cron > > -# Required-Start: $remote_fs $syslog > $time > > +# Required-Start: $remote_fs $syslog > $time $all > > # Required-Stop: > $remote_fs $syslog $time > > # Should-Start: $network > $named slapd autofs ypbind nscd nslcd > > # Should-Stop: > $network $named slapd autofs ypbind nscd > nslcd > > > > As an aside, I do not understand why > one should list > > $remote_fs $syslog $time > > when $all is stated. I mean, doesn't $all > includes those services? > > Having $all listed with other services is copied from > init.d/rc.local. > > Can it be that $all is insserv's specific, and there > was an attempt > > to allow other boot scripts' enumerating facilities? > > I'm not sure I entirely follow, but I read insserv(8) as > Should-Start: > $all being correct (ie, without $remote_fs $syslog $time). > That is how I read it too. I assume you noticed I was adding it to the Required-Start, not Should-Start. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org