Operating System - HP-UX
1830935 Members
2478 Online
110017 Solutions
New Discussion

Re: syslog file not present

 
Alberto Rocha
Advisor

syslog file not present

Hello, for some strange reason i have a production server (rp3440 w/ hpux 11.11) where '/var/adm/syslog/syslog.log' doesn't exhist.

Maibe the reason was previous a gunzip over that file. How can i start having again that information. A reboot? 'touch'? Starting some service?

Thx
6 REPLIES 6
Calandrello
Trusted Contributor

Re: syslog file not present

friend
verifies if the service of syslog this in air ps - ef |grep syslog in case that it does not execute syslogd case the /var/adm/syslog/syslog.log archive not to appear verifies the onfigurações in the /etc/syslog.conf archive
Paul Sperry
Honored Contributor

Re: syslog file not present

Is the syslogd running??
ps -ef | grep syslogd

if not try

/sbin/init.d/syslogd start
Pete Randall
Outstanding Contributor

Re: syslog file not present

First, check if the syslog daemon is running:

ps -ef |grep syslog

- should return -

# ps -ef |grep syslog
root 419 1 0 Mar 28 ? 0:12 /usr/sbin/syslogd -D

Then stop and restart it:

/sbin/init.d/syslogd stop
/sbin/init.d/syslogd start

If that doesn't create the file, try touching the file, then stopping and restarting the daemon again.


Pete



Pete
Peter Godron
Honored Contributor

Re: syslog file not present

Alberto,
a reboot would ceratinly to the trick, however, I would first try touch to create a new file. If that does not work:
cd /etc
vi rc.log Look for syslogd command
stop the syslogd daemon
start the syslogd daemon
Alberto Rocha
Advisor

Re: syslog file not present

Thank you all - i've got right an quick response.(thread is closed)
Paul Sperry
Honored Contributor

Re: syslog file not present

your welcome