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

Re: Problems with init

On Fri, Jul 27, 2001 at 01:57:08PM +0400, Wartan Hachaturow wrote:
> On Fri, Jul 27, 2001 at 10:02:20AM +0200, Radovan Garabik wrote:
> > I mean, when you are starting e.g. nfs-server, it depends on
> > nfs-common, that depends on portmap, and that depends on networking,
> > so these scripts are run in correct order.
> > And when I decide to stop networking, does it know to stop first
> > nfs-server, then nfs-common, them portmap and finally networking?
> Init or rc*.d scripts should not now anything about dependencies,
> in my mind. It is the thing that package management software of
> administrator should decide. Both of the inits allow one to create
> such a system of scripts. In the case of sysvinit you (or some
> program, update-rc.d, for example) place S[number] and K[number] 
> scripts in the needed order so when, for example, init is on the
> runlevel 6 it would stop all the services in the needed order,
> and start umounting only after everything is stopped (that's the
> way everything is done right now :)

but what when I want to upgrade portmap?
I need to shut down nfs services, replace portmap,
restart nfs services. Without these dependencies, it is a tedious task.

> So, in my mind, init should _not_ know about any services dependencies,
> since it's the thing that it's not designed to do. KISS principle.

SysV init and rcX/ runlevels is not KISS. Flat startup file (a la
slackware) is KISS, and IMHO much better manually manageable than
current init scheme. But, of course, much worse automatically

> And again, porting and using sysvinit is a Good Thing (tm).

Agreed, but we can always look for a better solutions :-)

> Using scripts is a good idea, but for example, we miss telinit.
> Init is not just a thing that starts your services ;)

what is the purpose of telinit other than restarting init and switching
runlevels? (when there are no runlevels, there is no need to switch
them :-))

| Radovan Garabik http://melkor.dnp.fmph.uniba.sk/~garabik/ |
| __..--^^^--..__    garabik @ melkor.dnp.fmph.uniba.sk     |
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!

Reply to: