1304RE: [gnubies-il] Probably a (very) easy one...
- Aug 1, 2002Thank you all for your answers.
Tzafrir - the script should establish the connection with Netvision
computers (currently, it's established automatically, but they intend to
change it and use what may be described as a cable version of an ADSL
dialer). I'm unaware of any disconnection script (that is - they didn't
provide one. I'll check again with their technical support).
> -----Original Message-----
> From: Tzafrir Cohen [mailto:tzafrir@...]
> Sent: Thursday, August 01, 2002 9:55 AM
> To: firstname.lastname@example.org
> Subject: Re: [gnubies-il] Probably a (very) easy one...
> [ Here comes the long answer ]
> On Thu, 1 Aug 2002, Sagi Bashari wrote:
> > From: "Haim Ravia" <ravia@...>
> > > Hi
> > >
> > > How do I make a script run at Linux init (a script handling the
> > > connection to the Internet with cable modem in this case)?
> What does this script do, BTW? Anything more than dhcp? If
> not: maybe you should use the standard networking scripts.
> A relevant question: how do you disconnect? Can the script do
> that (disconnect cleanly)?
> > >
> > > I assume that I have to copy the script into /etc/rc.d/rc5.d and
> > > name it, for example, "S100interconnect". Am I right? Can
> I choose
> > > an arbitrary name as long as it starts with S+number (in this
> > > particular example I chose the S100 because the scripts I already
> > > have end with S99*).
> > >
> Not exactly, see below
> > If it's local script (not part of any program) maybe you
> should just
> > call it from /etc/rc.d/rc.local instead.
> rc.local is executed at the very end of the init scripts.
> starting a network interface is something that should be done
> sooner, because it would probably affect other services.
> Here is roughly what happens in the init scripts. The
> following is correct for redhat and Mandrake, and not exactly
> correct for debian. Slackware has different init scripts.
> At first, the script 'rc.sysinit' runs. Later the scripts of
> the current runlevel run. And in the end runs rc.local.
> The scripts themselves are usually placed at /etc/init.d .
> /etc/rc[runlevel].d (e.g: /etc/rc5.d) only has symlinks to
> scripts in /etc/init.d.
> Let's take this example directory:
> $ \ls /etc/rc3.d
> K34yppasswdd K92anacron S39ldap S71sound
> K35smb K92ipchains S40atd S75keytable
> K35vncserver K96pcmcia S50snmpd S80postfix
> K45named.rpmorig S03iptables S55named S85httpd
> K47qmail-qmtpd.init S10network S55sshd
> S85postgresql S99local
> K48qmail-pop3d.init S20random S55xntpd S85proftpd
> K49qmail-qmqpd.init S25netfs S56rawdevices S90crond
> K88syslog S35identd S70alsa S90squid
> Each of those is a link o a script in /etc/init.d with the
> same name except the first three letters (e.g: in /etc/init.d
> I have yppasswd, smb, vncserver, etc.).
> The server first runs any script that starts with 'K'
> ("kill") with the parameter "stop", and after that, it runs
> any that starts with 'S'
> ("start") with the parameter "start". The order among the
> script is simply "alphabetical" order, and thus smaller
> numbers will always come first, *as
> long* as you keep the number of digits (thus S100 is not a good idea).
> It can be a script, of course.
> Anyway, "network" is typically started at S30 with Redhat and
> Mandrake, IIRC. So probably some scripts assume that at this
> point all the network interfaces are up. So maybe you should
> place it around S31 or so.
> But are you sure that you don't have to do any clean-up
> operation on system shutdown?
> Tzafrir Cohen
> mailto:tzafrir@... http://www.technion.ac.il/~tzafrir
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~--> Free $5 Love Reading Risk Free!
> > http://us.click.yahoo.com/NsdPZD/PfREAA/Ey.GAA/0XFolB/> TM
> To unsubscribe from this group, send an email to:
> Your use of Yahoo! Groups is subject to
- << Previous post in topic