Re: /etc/rc?.d question

2000-09-12 Thread Krzys Majewski
It looks to me like you didn't do anything wrong.

Given an infinite amount of time,
everyone on this list could solve all his Linux problems
without any third-party help. All you have to do is read every 
single man page, every README, every info file, and the
source code to all the programs on your machine, and you're
set. If you're not a programmer, you would also have to read the C
bible, the C++ bible, a Perl book, a Bourne Shell book, a
Tcl/Tk book, and a few others. A few basic algorithms books
might help, as well as an OS textbook, the TCP/IP networking
bible, and all five books in the Hitchhiker's Guide trilogy
(for completeness). After about 40 years you would have an
excellent understanding of your system.

Now yesterday I spent about 6 hours on the computer, then one
hour at 4am when I woke up and realized my machine had failed
to power itself down (you may have seen my post), and today
I'm sick so I'm due to spend all day at the keyboard. 
Nonetheless, I will say this again: Computers are boring.
Linux is boring. Debian is boring. Whenever you can find a way to
save RTFM time, by posting to the list or whatever, more power
to you. Of course you have to consider the impact of
this on the rest of the world: if you save your time by
wasting mine, that's not so great. However, it doesn't look to
me like Mr. Pernegger is a flagrant violator of this rule.

cheers
chris


On Tue, 12 Sep 2000, Christian Pernegger wrote:

> I read the mans of init, inittab & update-rc.d & the section of the policy
> manual, where I didn't see an indication of this "exception". I honestly
> thought I'd read enough to try the list.
> 
> My apologies
> 
> Christian
> 
> 
> 
> 



Re: /etc/rc?.d question

2000-09-12 Thread Christian Pernegger
> Well, had you done the full RTFM routine (it means read ALL of them until
> you find what you want...)

Point taken.

> see /usr/share/doc/sysvinit.

Thanks very much, that's all I wanted to know.

> So don't get too surprised that someone was a bit harsh in his reply.

Oh, I wasn't. I knew I was posting a newbie question :) I _really_
did not expect him to answer...

> Make sure you read the last paragraph, too.

At least someone admits it's confusing :)

I read the mans of init, inittab & update-rc.d & the section of the policy
manual, where I didn't see an indication of this "exception". I honestly
thought I'd read enough to try the list.

My apologies

Christian





pgp4pqYdd3cUj.pgp
Description: PGP signature


Re: /etc/rc?.d question

2000-09-12 Thread Miquel van Smoorenburg
Oh well.

According to [EMAIL PROTECTED]:
> From: [EMAIL PROTECTED]
> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> Date: Tue, 12 Sep 2000 15:49:41 +0800
> X-Envelope-To: [EMAIL PROTECTED]
> 
> Dear Sir/Madam
> 
> Your message cannot be delivered to the recipient because his/her mail box 
> storage limit has exceeded.
> 
> The summary of your previous message:
> From: [EMAIL PROTECTED]
> To:   [EMAIL PROTECTED]
> Cc:   debian-user@lists.debian.org
> Sent Date:2000/9/12 PM 03:49:10
> Subject:  Re: /etc/rc?.d question
> Body:
> *
> According to Christian Pernegger:
> > I fully understand that you as the Grand Master of the Debian init system
> > might be annoyed by such a question, but why reply, then?
> 

Mike.
-- 
Deadlock, n.:
Deceased rastaman.



Re: /etc/rc?.d question

2000-09-12 Thread Miquel van Smoorenburg
According to Christian Pernegger:
> On Mon, Sep 11, 2000 at 11:19:23PM +, Miquel van Smoorenburg wrote:
> 
> > There is a README in /etc/init.d for a reason, you know ..
> 
> I fully understand that you as the Grand Master of the Debian init system
> might be annoyed by such a question, but why reply, then?

I am not the Grand Master of the Debian init system. I didn't invent it.
It existed before I became a Debian maintainer. But I did my best to
improve and document it.

> That said, I usually appreciate RTFM pointers - in this case however I have
> read the FM in question. (policy manual, sec 3.3)

Yes but the README _also_ says:

Some more detailed info can also be found in /usr/share/doc/sysvinit

.. and in that directory we find:

% cd /usr/share/doc/sysvinit 
% ls
README.runlevels.gz  changelog.gz  copyright  examples/

README.runlevels.gz will answer all your questions

Mike.
-- 
Deadlock, n.:
Deceased rastaman.



Re: /etc/rc?.d question

2000-09-11 Thread Bob McGowan
Run states 0 and 6 are both characterized by complete shutdown of all
services.  And since the script name is just a way to find the file(s)
of interest (and _all_ files are "of interest" for 0/6) and it is the
argument that actually causes the action, it doesn't matter what name is
used so long as all scripts get the "stop" action argument.  This is why
it works.

As to the "policy" governing this, the logical assumption, based on what
I've read in the Debian policy document and the README in /etc/init.d,
would be that all the scripts in these two directories should be named
as K* files.

I don't have access to a Linux system right now to look, but I'd take a
peek at the rc0 and rc6 scripts and see how they access the files in
their respective directories.  It might provide more insight into the
why.

Bob

Christian Pernegger wrote:
> 
> On Mon, Sep 11, 2000 at 11:19:23PM +, Miquel van Smoorenburg wrote:
> 
> > >I uncommented the debug line in /etc/init.d/rc and noticed that
> > >all scrips in rc6.d / rc0.d were called with "stop" on shutdown
> > >_regardless of prefix_. Now I'm totally confused.
> >
> > Why don't you simply read the documentation?
> >
> > There is a README in /etc/init.d for a reason, you know ..
> 
> I fully understand that you as the Grand Master of the Debian init system
> might be annoyed by such a question, but why reply, then?
> 
> That said, I usually appreciate RTFM pointers - in this case however I have
> read the FM in question. (policy manual, sec 3.3)
> 
> All I could find was that "update-rc.d" by default stops stuff in 0/6,
> = creates a K* symlink. (That it does...)
> 
> However, this does not explain why all the _existing_ S??something scripts
> in 0/6 are called with stop. (The manual states repeatedly that S* scripts
> will be called with start.)
> 
> I'd be grateful if you could take the time to clarify this - a pointer'd
> do nicely.
> 
> Regards
> 
> Christian
> 
>   
>Part 1.2Type: application/pgp-signature



Re: /etc/rc?.d question

2000-09-11 Thread Henrique M Holschuh
On Tue, 12 Sep 2000, Christian Pernegger wrote:
> On Mon, Sep 11, 2000 at 11:19:23PM +, Miquel van Smoorenburg wrote:
> > There is a README in /etc/init.d for a reason, you know ..
> 
> I fully understand that you as the Grand Master of the Debian init system
> might be annoyed by such a question, but why reply, then?

Well, had you done the full RTFM routine (it means read ALL of them until
you find what you want...), you'd have noticed the "for more information,
see /usr/share/doc/sysvinit". So don't get too surprised that someone was a
bit harsh in his reply.

In /usr/share/doc/sysvinit/README.runlevels.gz you'll find what you want,
described step-by-step. Make sure you read the last paragraph, too.

-- 
  "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


pgpb5UuUWlm39.pgp
Description: PGP signature


Re: /etc/rc?.d question

2000-09-11 Thread Christian Pernegger
On Mon, Sep 11, 2000 at 11:19:23PM +, Miquel van Smoorenburg wrote:

> >I uncommented the debug line in /etc/init.d/rc and noticed that
> >all scrips in rc6.d / rc0.d were called with "stop" on shutdown
> >_regardless of prefix_. Now I'm totally confused.
> 
> Why don't you simply read the documentation?
> 
> There is a README in /etc/init.d for a reason, you know ..

I fully understand that you as the Grand Master of the Debian init system
might be annoyed by such a question, but why reply, then?

That said, I usually appreciate RTFM pointers - in this case however I have
read the FM in question. (policy manual, sec 3.3)

All I could find was that "update-rc.d" by default stops stuff in 0/6,
= creates a K* symlink. (That it does...)

However, this does not explain why all the _existing_ S??something scripts
in 0/6 are called with stop. (The manual states repeatedly that S* scripts
will be called with start.)

I'd be grateful if you could take the time to clarify this - a pointer'd
do nicely. 

Regards

Christian



pgpm7kOGP47db.pgp
Description: PGP signature


Re: /etc/rc?.d question

2000-09-11 Thread Miquel van Smoorenburg
In article <[EMAIL PROTECTED]>,
Christian Pernegger <[EMAIL PROTECTED]> wrote:
>I uncommented the debug line in /etc/init.d/rc and noticed that
>all scrips in rc6.d / rc0.d were called with "stop" on shutdown
>_regardless of prefix_. Now I'm totally confused.

Why don't you simply read the documentation?

There is a README in /etc/init.d for a reason, you know ..

Mike.
-- 
Deadlock, n.:
Deceased rastaman.



RE: /etc/rc?.d question

2000-09-11 Thread Christian Pernegger
I uncommented the debug line in /etc/init.d/rc and noticed that
all scrips in rc6.d / rc0.d were called with "stop" on shutdown
_regardless of prefix_. Now I'm totally confused.

Christian

> -Original Message-
> From: Bob McGowan [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 12, 2000 12:12 AM
> To: Christian Pernegger
> Cc: Debian user list
> Subject: Re: /etc/rc?.d question
> 
> 
> Check the directory /etc/rcS.d which is run when init goes to single
> user/halt, IIRC.
> 
> Christian Pernegger wrote:
> > 
> > Hi list, here's a quick one:
> > 
> > I always thought that init, when changing runlevels,
> > called first the K* scripts of the new runlevel with "stop",
> > then the S* ones with "start".
> > 
> > So I expected to find a K??networking in rc[06].d, but there's
> > only a S??networking variant - in fact nowhere on the system could
> > I find a K script for networking. Yet the code for "stop" is there
> > and clearly executed whenever I halt/reboot.
> > 
> > ???
> > 
> > Please enlighten me!
> > 
> > Regards
> > 
> > Christian
> > 
> > --
> > Unsubscribe?  mail -s unsubscribe 
> [EMAIL PROTECTED] < /dev/null
> 
> -- 
> Bob McGowan
> Staff Software Quality Engineer
> VERITAS Software
> [EMAIL PROTECTED]
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe 
> [EMAIL PROTECTED] < /dev/null
> 
> 



Re: /etc/rc?.d question

2000-09-11 Thread Bob McGowan
Check the directory /etc/rcS.d which is run when init goes to single
user/halt, IIRC.

Christian Pernegger wrote:
> 
> Hi list, here's a quick one:
> 
> I always thought that init, when changing runlevels,
> called first the K* scripts of the new runlevel with "stop",
> then the S* ones with "start".
> 
> So I expected to find a K??networking in rc[06].d, but there's
> only a S??networking variant - in fact nowhere on the system could
> I find a K script for networking. Yet the code for "stop" is there
> and clearly executed whenever I halt/reboot.
> 
> ???
> 
> Please enlighten me!
> 
> Regards
> 
> Christian
> 
> --
> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
[EMAIL PROTECTED]



/etc/rc?.d question

2000-09-11 Thread Christian Pernegger
Hi list, here's a quick one:

I always thought that init, when changing runlevels,
called first the K* scripts of the new runlevel with "stop",
then the S* ones with "start".

So I expected to find a K??networking in rc[06].d, but there's
only a S??networking variant - in fact nowhere on the system could
I find a K script for networking. Yet the code for "stop" is there
and clearly executed whenever I halt/reboot.

???

Please enlighten me!

Regards

Christian