Results 1 to 6 of 6
I have a 2 usr system at home. One linux box and one Winblows98 box.
The rwhod broadcasts every 3 minutes or so filling my firewall logs as well as ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-20-2003 #1Linux Newbie
- Join Date
- Aug 2003
- Posts
- 113
How do I stop/shut off rwhod so that it's not running?
I have a 2 usr system at home. One linux box and one Winblows98 box.
The rwhod broadcasts every 3 minutes or so filling my firewall logs as well as space on the locale harddrive.
I'm only about 4 mnths new to linux, but I would like to know how and what steps to turn off blaberring services that I have no need for. Altleast I don't think that I need the rwhod service?
Does anyone have a link to show me how to do this or can this be easily explain in a short amount of time.
This will be my fist time and I would like to learn who to do this for a future project.
Thanks,JB
- 08-20-2003 #2Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
The init scripts should be in /etc/init.d. Find the script in there and run it like this: ./rwhod stop <- just example and make sure you are in /etc/init.d
- 08-20-2003 #3Just Joined!
- Join Date
- May 2003
- Location
- chennai,tamilnadu,india
- Posts
- 16
for all the daemon services
/etc/init.d/<daemon name> stop /* stops it */
/etc/init.d/<daemon name> start /* starts it*/
for ur case
/etc/init.d/rwhod stop
in case u r using redhat linux also u can use
service rwhod stop
- 08-20-2003 #4Linux Newbie
- Join Date
- Aug 2003
- Posts
- 113
Thanks for the reply.
I thought that I already tried that but I'll look at again though. Once you reboot or logback in the service starts again.
What I'm looking for is a permanent solution. I.E....I want to shut rwhod off or down so that when I reboot or logout....logback in that this service isn't running or at a minimum performing network broadcasts every 3 minutes.. I would prefer just shutting the service down for now though.
I would also like to learn more about how to control my environment, like above....
Thanks.JB
- 08-21-2003 #5Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Well, if this is SysV compatible, run this:
The question marks are supposed to be wildcards, not placeholders, so you need not replace them with anything.Code:rm /etc/rc.d/rc?.d/S??rwhod
Some distros also support this:
It essentially runs the above, though.Code:chkconfig rwhod off
The best way to get in control of your environment is to learn shell scripting and study your distro's init scripts, so that you can see for yourself exactly what it does. Also, study your /etc/inittab. The reference manual for its format can be found in the inittab(5) manpage (run "man 5 inittab" to watch it in a terminal).
For learning shell scripting, see the bash(1) manpage and http://www.linuxcommand.org/.
- 08-21-2003 #6Linux Newbie
- Join Date
- Aug 2003
- Posts
- 113
Ahhh. Thanks for all the help everyone.
You helped me find what I was looking for.
chkconfig does the trick and then some.
For me:
chkconfig --level 345 rwhod off
chkconfig --level 35 smb off
The chkconifg man page helped allot. And does exactly what I wanted to do and then some. Seems like a better choice than going into the init.d directory because you can stop the specified service at the specified run levels..
*******************
chkconfig provides a simple command-line tool for maintaining the
/etc/rc[0-6].d directory hierarchy by relieving system administrators
of the task of directly manipulating the numerous symbolic links in
those directories.
This implementation of chkconfig was inspired by the chkconfig command
present in the IRIX operating system. Rather than maintaining configu-
ration information outside of the /etc/rc[0-6].d hierarchy, however,
this version directly manages the symlinks in /etc/rc[0-6].d. This
leaves all of the configuration information regarding what services
init starts in a single location.
*********************
Dolda2000,
I'ts funny that you mention shell scripting because I happen to be on that same site right now. Again, thanks for the kind help. Much appreciated.
Thanks,JB


Reply With Quote
