LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Unload a module without rebooting? (https://www.linuxquestions.org/questions/linux-software-2/unload-a-module-without-rebooting-317681/)

Phaethar 04-27-2005 08:30 AM

Unload a module without rebooting?
 
Hey all,

I was wondering if there was an easy way to remove a module without having to reboot the system. I have a handful of systems here that are loading the vnc module on startup, as it was set up to do so in the xorg.conf file. I need to remove VNC from the systems, but they are in production already and I'd really prefer to not reboot them if at all possible. It's easy enough to edit the xorg.conf file and remove the settings that load it, but can I unload vnc while the system is running, or is a reboot the only way? The are all Fedora 2 and 3 systems.

Thanks.

jtshaw 04-27-2005 08:42 AM

Just restart the X server and it will be unloaded.

theYinYeti 04-27-2005 08:52 AM

Don't forget to disable the module in the config file before restarting X.

Yves.

Phaethar 04-27-2005 11:39 AM

Quote:

Just restart the X server and it will be unloaded.
Ok... maybe this is a dumb question and I'm just in the dark about this, but how do I restart the X server on Fedora 2 or 3 without restarting the entire system? It doesn't have a text boot mode, it's graphical all the time. Logging out still keeps the X server running and has a graphical login screen, so you never have to run a 'startx' to get into graphical mode.

Again, maybe this is obvious and I'm just not seeing it... if someone could point me in the right direction, I'd appreciate it!

Thanks for the tips!


Edit: NVM, I got it working now. For some reason, just editing the xorg.conf file and logging off wasn't doing it. But, if I edit the file, then make a resolution change (even if I don't change anything), causing it to make a new xorg.conf file, then it works by just logging out and logging back in. Weird, but at least it works. Thanks!

jtshaw 04-27-2005 12:42 PM

Logout. When you are sitting at the graphical login do a ctrl-alt-backspace. It will restart your x server. You can also do this by using ctrl-alt-F[1-4], logging in to a text consol, and doing a kill -s HUP <pid> where pid is the pid of your graphical login manager (usually either kdm or gdm). You can get a processes pid from ps.

EDIT: Sorry.. I missed your edit...


All times are GMT -5. The time now is 07:22 AM.