LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   change/remove boot modules (https://www.linuxquestions.org/questions/slackware-14/change-remove-boot-modules-421014/)

drummerdan 03-02-2006 01:49 PM

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

win32sux 03-02-2006 02:02 PM

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 :twocents:...



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

Alien_Hominid 03-02-2006 02:04 PM

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

gilead 03-02-2006 03:26 PM

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


All times are GMT -5. The time now is 07:47 PM.