LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-11-2004, 05:18 PM   #1
bureado
Member
 
Registered: Oct 2003
Location: Caracas
Distribution: Knoppix 3.3 (Debian sarge/sid)
Posts: 72

Rep: Reputation: 15
/etc/rc*.d bulk script calls in knoppix 3.3


Greetings,

I'm trying to 'optimize' my boot process. I'm running Debian GNU/Linux sarge-sid, installed from a Knoppix 3.3 CD, which I think is the guilty for this problem.

I read a lot about boot process and all that stuff. I know that scripts that shall be killed or executed in each runlevel shall be in /etc/init.d directory and are called by a symlink in /etc/rn.d where N is the runlevel number.

The problem is that I have symlinks to the same script in several runlevels, thing that seems kind of silly to me, because, i.e., kdm can't be started in runlevel 2...

For example:

In runlevel 1, init must kill: gdm, speedtouch and xsession. When did those things started? God, it's runlevel 1...

In runlevel 2 it insists to start gdm, kdm, speedtouch, iptables and samba. How?

In runlevel 3 it's still insisting in start gdm, kdm, speedtouch and samba...

It seems to me that it's ok that 'speedtouch' and 'iptables' start running in runlevel 4 and in runlevel 5 'kdm' starts.

My question is, can I just remove the symlinks from /etc/rc1.d, 2.d, 3.d and 4.d? That way it wouldn't keep trying to start annoying things in annoying runlevels.

One last question, my 'speedtouch' script is failing because kernel module speedtch interferes with it's execution. I have to type: rmmod speedtch and then /etc/init.d/speedtouch start in order to connect.

How can I avoid kernel from loading module speedtch?

Thank you very much in advance
 
Old 03-11-2004, 05:55 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: /etc/rc*.d bulk script calls in knoppix 3.3

Quote:
Originally posted by bureado
Greetings,

I'm trying to 'optimize' my boot process. I'm running Debian GNU/Linux sarge-sid, installed from a Knoppix 3.3 CD, which I think is the guilty for this problem.

I read a lot about boot process and all that stuff. I know that scripts that shall be killed or executed in each runlevel shall be in /etc/init.d directory and are called by a symlink in /etc/rn.d where N is the runlevel number.

The problem is that I have symlinks to the same script in several runlevels, thing that seems kind of silly to me, because, i.e., kdm can't be started in runlevel 2...


You have done some reading good. The levels 2 through 5 are all the same in Debian unless you do as you seem to want to and configure it differently.

Quote:
For example:

In runlevel 1, init must kill: gdm, speedtouch and xsession. When did those things started? God, it's runlevel 1...
They are not getting started those should be links to killing off the processes if they look like these they I have here in a spare machine where I mounted the Knoppix partition.

Code:
BashfulTux:/home/stephen# ll /mnt/etc/rc1.d/
K01kdm            K20autofs         K20rsync          K25mdadm
K01xdm            K20distcc         K20smartmontools  S20single
K10xsession       K20fam            K20smartsuite
K19samba          K20lisa           K20ssh
K20apmd           K20partimaged     K20xfs
The one start link (S20single) is for the single user mode start.


Quote:
In runlevel 2 it insists to start gdm, kdm, speedtouch, iptables and samba. How?
I think you mean "Why?" for the same reason I gave above the 2-5 levels are all the same.

Quote:
In runlevel 3 it's still insisting in start gdm, kdm, speedtouch and samba...
Same as above.

Quote:
It seems to me that it's ok that 'speedtouch' and 'iptables' start running in runlevel 4 and in runlevel 5 'kdm' starts.
Networking gets started in the 2-5 so you would definitely want iptables in all of them.

Quote:
My question is, can I just remove the symlinks from /etc/rc1.d, 2.d, 3.d and 4.d? That way it wouldn't keep trying to start annoying things in annoying runlevels.
Certainly you can configure your scripts any way you want just make sure you do not destroy the functioning of the system in the process. For instance if you do not wish to start kdm in 2, 3 and 4 I believe the correct syntax for the command as root would be update-rc.d kdm remove 2 3 4 . you may want to consult the man page this is from memory.

Quote:
One last question, my 'speedtouch' script is failing because kernel module speedtch interferes with it's execution. I have to type: rmmod speedtch and then /etc/init.d/speedtouch start in order to connect.

How can I avoid kernel from loading module speedtch?

Thank you very much in advance
Well the simple but complicated solution is to compile and install a new kernel and leave the module out then you never have to worry about it being loaded. A good work around is to have the second line of your script have "rmmod speedtch" then carry on with its normal function eg.

Code:
#!/bin/sh
rmmod  speedtch
.....
Editamn typos.

Last edited by HappyTux; 03-11-2004 at 05:56 PM.
 
Old 03-11-2004, 06:35 PM   #3
bureado
Member
 
Registered: Oct 2003
Location: Caracas
Distribution: Knoppix 3.3 (Debian sarge/sid)
Posts: 72

Original Poster
Rep: Reputation: 15
Problem solved. I won't touch those scripts in 2-5 runlevels...
I also added 'rmmod speedtch' to the speedtouch script second line. Should be good now.

Thank you very much
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
creating shell script programming using KNOPPIX.. help cinderella Linux - Newbie 4 12-20-2004 07:12 PM
porting knoppix autodetection script jadermf Linux - General 6 04-03-2004 04:59 AM
script in knoppix comtronics Debian 0 03-20-2004 11:35 PM
Which script calls the X11 program on RedHat 8.0? yorambaron Linux - Software 2 12-13-2003 08:46 AM
Bulk image format conversions with a shell script? infidel Linux - Software 4 11-16-2003 07:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration