[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: So many packages. So few that I need started at every boot.

On Wed, 31 Dec 2003, Joerg Sommer wrote:
> > If we are talking SysV here, they should be stopped if you leave the
> > runlevel _ONLY_ if there is a stop link in the *destination* runlevel.
> But what, if there was also a stop link in the current runlevel, which
> means the process isn't running? Or the other case what if in the current

Read /etc/init.d/rc...  the corner cases are really confusing, you WILL have
to read the code to know what would happen.  And file-rc may act differently
from sysv-rc on corner cases, I should add (due to either implementation
differencies, bugs in sysv-rc or file-rc, or phase of the moon).

> > If you have stop links in runlevel 2 and 6 and 0, Debian's sysv-rc will not
> > rerun the initscript while switching between these runlevels AFAIK.
> Great. This is the behavior I expect of file-rc.
> But at me:
> #v+
> $ PREVLEVEL=3 /etc/init.d/rc -d 2  
> rc: 3 -> 2
> Reading configuration file /etc/runlevel.conf.
> set centerline=here; /etc/init.d/xdm stop
> ~$ PREVLEVEL=2 /etc/init.d/rc -d 6
> rc: 2 -> 6
> Reading configuration file /etc/runlevel.conf.
> set centerline=here; /etc/init.d/xdm stop; /etc/init.d/cron stop;
> /etc/init.d/aumix stop; ...
> ~$ grep xdm /etc/runlevel.conf 
> 01      0,1,2,6 -               /etc/init.d/xdm
> 99      -       3,4,5           /etc/init.d/xdm
> #v-

File a wishlist bug on file-rc requesting that it optimizes the runlevel
changes like sysv-rc does, I guess...

  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

Reply to: