LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-02-2006, 01:49 PM   #1
drummerdan
Member
 
Registered: Mar 2006
Posts: 30

Rep: Reputation: 15
change/remove boot modules


I'm new to linux but i'm getting the hang of it. I wanted to know about the processes that go on during boot up, mainly help with adding my own, removing some, or editing characteristics. A few examples: I'd like to add dhcpcd. Also remove a poorly installed mysql entry (error before login). Is there a file that contains this data? Or a program to edit it with? I'd also be interested in automated functions that run during and after login/out depending on user (If this is actually possible.) Ex: running the clear command after a non root user logs out. thanks!
p.s. slack 10.2 kernel 2.4.31
 
Old 03-02-2006, 02:02 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
welcome to LQ!

you can add your stuff in the /etc/rc.d/rc.local file... the modules get loaded from the /etc/rc.d/rc.modules file... the mysql startup script is /etc/rc.d/rc.mysqld and the dhcpcd get's called from the network startup script, which is the /etc/rc.d/rc.inet1 file... as for the scripts running upon login, i think you'd use the ~/.bashrc file, which would need to be created if it doesn't exist... i'm not sure about having something run on logout... i mean, i'm positive you can do it (in fact it's quite common from what i've seen), i just don't know how... i'm sure someone else does, though... just my ...



EDIT/BTW: it's likely that your mysql error is simply that you haven't gone through the initial setup yet... either way, to disable mysql from starting, you just need to make it's startup script non-executable, like so:
Code:
chmod 644 /etc/rc.d/rc.mysqld

Last edited by win32sux; 03-02-2006 at 02:06 PM.
 
Old 03-02-2006, 02:04 PM   #3
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Explore etc/rc.d/. All services at boot time are loaded from here. Your own command (system wide) must be put in /etc/rc.d/rc.local. To execute script at start time chmod +x rc.script, to stop executing, for example mysql, chmod -x rc.mysqld. As well look at /etc/inittab and inetd.conf

Last edited by Alien_Hominid; 03-02-2006 at 02:11 PM.
 
Old 03-02-2006, 03:26 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
You may have some things configured to run under inetd, have a look in /etc/inetd.conf for lines that aren't commented out:
Code:
grep '^[^#]' /etc/inetd.conf
 
  


Reply



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
remove modules from load sharkzf6 Debian 4 03-19-2005 11:25 AM
Can I safte remove /lib/modules/2.6.10-1.741_FC3? neo_in_matrix Linux - Software 1 01-21-2005 10:43 AM
remove the modules alaios Linux - General 3 11-17-2004 07:57 AM
modconf won't install or remove modules mvent2 Linux - Hardware 3 08-08-2004 03:47 AM
Quick Question: permanently remove modules? 000 Linux - Newbie 2 12-31-2003 06:26 PM

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

All times are GMT -5. The time now is 09:47 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