LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Knoppix/Debian - how to disable NIS (https://www.linuxquestions.org/questions/linux-networking-3/knoppix-debian-how-to-disable-nis-184967/)

Geoffrey_Firmin 05-23-2004 07:26 PM

Knoppix/Debian - how to disable NIS
 
After a Knoppix HD install, I did an apt-get upgrade. Despite choosing to keep my current configuration files everytime I was prompted, after the upgrade NIS services are starting at bootup. This is causing a hang at boottime and a delay everytime I'm trying to load a webpage.

How do I stop the NIS services from starting? I tried editing the nsswitch.conf file, commenting out the NIS line, but it had no impact. Another post I read suggested remaing the /usr/sbin/ypserv executable file, but that hardly seems the best way to proceed. What are the conf files for Debian which control the startup of this service? How do I get rid of it?

zatriz 05-24-2004 05:58 PM

I haven't used debian but the concept is the same
the command to turn off a service is "chkconfig"
chkconfig --level 35 nis off
this command would turn off the service nis for runlevel 3 and 5


The config files are stored in /etc/rc.d/rc?.d/
where ?=the runlevel ie
/etc/rc.d/rc3.d/ would contain the script for runlevel 3
if you delete the file that starts with an S (for start ) that works also
but chkconfig is recommended

Geoffrey_Firmin 05-25-2004 01:15 AM

Thanks for the reply, you got me on the right track

Quote:

Originally posted by zatriz
I haven't used debian but the concept is the same
the command to turn off a service is "chkconfig"
chkconfig --level 35 nis off
this command would turn off the service nis for runlevel 3 and 5

No, chkconfig is apparently not available for Debian systems.

Quote:

[i]The config files are stored in /etc/rc.d/rc?.d/
where ?=the runlevel ie
/etc/rc.d/rc3.d/ would contain the script for runlevel 3
if you delete the file that starts with an S (for start ) that works also
but chkconfig is recommended [/B]
After searching for a bit I found that a good Debian option is rcconf,
which is not included on the Knoppiix disc. Very simple to use. Worked
like a charm. I'm brand new to Debian, obviously, and there are a lot of
differences from the Slackware and Redhat systems I've dealt with before.


All times are GMT -5. The time now is 02:53 PM.