how to disable syslogd and klogd?

Booting, installing, newbie
Post Reply
Message
Author
puppy_ok
Posts: 12
Joined: Thu 05 Oct 2006, 21:46

how to disable syslogd and klogd?

#1 Post by puppy_ok »

how to disable forever syslogd and klogd daemon?
at boot is automatic enabled.
please help me :)

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#2 Post by GuestToo »

put in /etc/rc.d/rc.local:

killall klogd syslogd

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#3 Post by BarryK »

They are started in /etc/rc.d/rc.sysinit, so you can just comment-out the lines.

I was wondering about these recently also. Do we really need them?
Do they slow things down much? Any disadvantages to having them running?

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#4 Post by GuestToo »

i guess the error messages are useful for diagnostic purposes

i think "puppy_ok" wanted them stopped because they kept accessing the hard drive and causing it to keep spinning

if you let them run while Puppy is booting, then kill them in rc.local or somewhere, you get the error messages while Puppy is booting, and they are shut down later when they may not be needed

a lot of programs (for example, iptables) use syslogd for logging messages

azstew
Posts: 78
Joined: Wed 23 Jul 2008, 15:37
Location: Apache Junction, Arizona

syslogd -m 0 hogs cpu

#5 Post by azstew »

At boot it starts, and uses 60-70% of cpu and I have to kill it.

Problem just started today. Puppy 5.2.5, 2 GB RAM, frugal install on SDHC, 1.6 Atom processor.

Here are the files I believe control syslogd and klogd


etc/rc.d/rc.sysinit

line 28 #100126 move syslogd, klogd to /etc/init.d/00sys_logger
line 307 #100126 moved to /etc/init.d/00sys_logger...
line 308 #syslogd -m 0
line 309 #klogd

/etc/init.d/00sys_logger (contents of file)

#!/bin/sh

case $1 in
start)
syslogd -m 0
klogd
;;
stop)
killall klogd
killall syslogd
;;
esac



How can I keep them from starting/are they needed?

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#6 Post by Karl Godt »

The files in /etc/init.d/* are started by /etc/rc.d/rc.services . That script should check if a file is executable in /etc/init.d/* and if not executable like README files , should skip them .

Post Reply