Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (10) AWS (5) numerology (5)

Wednesday, June 4, 2014

The syslogd is getting terminated automatically after starting + HPUX



TThe syslogd is getting terminated automatically after starting.

1. Check the values of LOG_SIZE in /etc/defaults/syslogd file.
# cat /etc/defaults/syslogd |grep -i "LOG_SIZE"
LOG_SIZE=2

2. Here the value is 2GB, Whenever the syslog or mail.log in /var/adm/syslog/ grows > 2 GB the syslog daemon stops working.; even if you restart it will fail to start. 

3. To resolve take a backup of syslog.log or mail.log and make the original file null and restart syslogd. 

# cp -p mail.log mail.log.1
# gzip mail.log.1
# > mail.log.1

We can do same thing for syslog.log  

# /sbin/init.d/syslogd stop; sleep 10; /sbin/init.d/syslogd start

4. Or Modify the LOG_SIZE=NOLIMIT or make it greater than 2GB in /etc/defaults/syslogd file.
# cat /etc/defaults/syslogd |grep -i "LOG_SIZE"
LOG_SIZE=3


Thanks...
Kiran Jadhav

**Let's Share our knowledge**

No comments:

Post a Comment