cancel
Showing results for 
Search instead for 
Did you mean: 

syslogd terminated

 
Highlighted
atul2701
Frequent Advisor

syslogd terminated

Hi

When i am trying to start the syslogd on my HP UX B.11.31 server it start and terminated immediately. I have tried to replace the /etc/syslog.conf file with /usr/newconfig/etc/syslog.conf.

# ps -ef |grep -i syslog
root 9925 11167 1 06:33:40 pts/0 0:00 grep -i syslog
# /sbin/init.d/syslogd stop
syslogd stopped
# /sbin/init.d/syslogd start
System message logger started
# tail /var/adm/syslog/syslog.log
May 11 06:33:58 whqwm03 syslogd: restart
May 11 06:33:58 whqwm03 syslogd: the kernel messages are already disabled: No such device or address
# cat /var/run/syslog.pid
10171
# ps -ef |grep -iE "10171|syslog"
root 10914 11167 0 06:35:01 pts/0 0:00 grep -iE 10171|syslog
#
Atul Gupta
16 REPLIES 16
Highlighted
Mel Burslan
Honored Contributor

Re: syslogd terminated

Long, long time ago, I remember encountering a situation like this and the cause of mine being ended up whitespaces in the syslog.conf file instead of tabs. Field separators in syslog.conf file SHOULD BE s, NOT whitespaces.

when you said you copied the newconfig file, you just cat'ed the file and do a screen-scraping (click and drag highlight and copy) then paste into your editor session, what you might end up doing is introducing whitespaces.

If I were you, even if you did not do what I said, I'd check for the existence of whitespaces in this file. Just for precaution if nothing else.
________________________________
UNIX because I majored in cryptology...
Highlighted
Michael Steele_2
Honored Contributor

Re: syslogd terminated

I believe you are on the right track with /usr/newconfig/etc/syslog.conf but I must believe that you have a whitespace or control char still in there.

Question: Did you update the default syslog.conf file or just copy it in?

b) try this

grep -v "^[[:blank:]]*$" syslog.conf > work_file
ls -la both files
cksum both files

Any difference? If so then use the work_file
Support Fatherhood - Stop Family Law
Highlighted
atul2701
Frequent Advisor

Re: syslogd terminated

no luck...

# cd /etc
# grep -v "^[[:blank:]]*$" syslog.conf > work_file
# ls -la syslog.conf
-r--r--r-- 1 bin bin 250 May 12 01:30 syslog.conf
# ls -la work_file
-rw-r----- 1 root sys 250 May 12 01:47 work_file
# cksum syslog.conf work_file
3145885767 250 syslog.conf
3145885767 250 work_file

Atul Gupta
Highlighted
atul2701
Frequent Advisor

Re: syslogd terminated

no luck...

# cd /etc
# grep -v "^[[:blank:]]*$" syslog.conf > work_file
# ls -la syslog.conf
-r--r--r-- 1 bin bin 250 May 12 01:30 syslog.conf
# ls -la work_file
-rw-r----- 1 root sys 250 May 12 01:47 work_file
# cksum syslog.conf work_file
3145885767 250 syslog.conf
3145885767 250 work_file...
Atul Gupta
Highlighted
Laurent Menase
Honored Contributor

Re: syslogd terminated

do you have any 3rd party pam or nss lib?
is there a core?

you can also try a tusc on it to see what it is doing.
Highlighted

Re: syslogd terminated

Michael,

>> grep -v "^[[:blank:]]*$" syslog.conf > work_file

I don't think that regexp is working as you expected - I just added some spaces to a copy of my syslog.conf file and ran it through it, and it didn't pick them up...

atgupta,

Maybe a simpler one, does:

grep ' ' /etc/syslog.conf

(that's a space between the quote ' symbols)

return anything that's not on a comment line?

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Highlighted
atul2701
Frequent Advisor

Re: syslogd terminated

Laurent@ bad luck tusc or any other utility is not installed..

Duncan@ grep " " /etc/syslog.conf i already tried and there was no space...

# grep ' ' /etc/syslog.conf
# @(#)B.11.31_LR
# syslogd configuration file.
# See syslogd(1M) for information about the format of this file.
#
Atul Gupta
Highlighted
Michael Steele_2
Honored Contributor

Re: syslogd terminated

Well, I have to believe that this is for information only. Try running some LVM commands like:

vgscan -p -v -a
lvlnboot -R

...and post syslog.log afterwards.
Support Fatherhood - Stop Family Law
Highlighted
atul2701
Frequent Advisor

Re: syslogd terminated

As syslogd terminated immediately after i start it hence its not loging anything in syslog.log...
Atul Gupta