LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-31-2006, 04:57 AM   #1
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
newsyslog issue


I have solaris 8 installed with KUP of 108528-27.
And syslogd patch is the latest level.

I found my syslog stop to logging at 21th, May.
I suspect it is related to /usr/lib/newsyslog in my root crontab.
The /usr/lib/newsyslog script used SIGHUP to restart syslog daemon.

==>
Q1. Is it possible that the SIGHUP failed to restart the syslog daemon?

Q2. What is the process of the 'kill -HUP /var/run/syslog.pid'. I tried to run /usr/lib/newsyslog, it should restart the syslog daemong. But I found the process id of the syslog daemon is the same as the previous one. I wonder whether it means that the newsyslog script failed to restart syslog daemon.

Q3. I am not sure whether /etc/init.d/syslog stop/start is helpful in this case? can you help me?

==> I wonder using /etc/init.d/syslog stop/start will cause the syslog process id changed?
 
Old 10-31-2006, 02:10 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by UltraSoul
I have solaris 8 installed with KUP of 108528-27.
And syslogd patch is the latest level.

I found my syslog stop to logging at 21th, May.
5 month ago !
What were the last logs ?
Quote:
I suspect it is related to /usr/lib/newsyslog in my root crontab.
The /usr/lib/newsyslog script used SIGHUP to restart syslog daemon.

==>
Q1. Is it possible that the SIGHUP failed to restart the syslog daemon?
Unlikely.
Quote:

Q2. What is the process of the 'kill -HUP /var/run/syslog.pid'. I tried to run /usr/lib/newsyslog, it should restart the syslog daemong. But I found the process id of the syslog daemon is the same as the previous one. I wonder whether it means that the newsyslog script failed to restart syslog daemon.
It doesn't mean that, kill -HUP typical behaviour is to have a process read again its configuration and restart. It doesn't change it's pid in the process.
Quote:
Q3. I am not sure whether /etc/init.d/syslog stop/start is helpful in this case? can you help me?

==> I wonder using /etc/init.d/syslog stop/start will cause the syslog process id changed?
It should.
 
Old 11-01-2006, 12:25 AM   #3
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
Step 1:
#/etc/init.d/syslog stop
I fuond the syslog did not stop. Does this script use -15 to kill the syslog process.

Step 2:
# kill 202 ( nothing wirk )
# kill -9 202 ( Force to kill is OK )
# /etc/init.d/start ( restarted syslog )

==> After restarting syslog daemon, I found that su can not work anymore. su command hang.

Step 3:
/var/adm/messages # ls -l
........... root other 0 May 21 03:10 syslog
........... root other 13315727 May 21 03:10 syslog.0
==> So I think the newsyslog is suspect to cause the syslog rotation
failure.

Please advise.
 
Old 11-01-2006, 02:09 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by UltraSoul
Step 1:
#/etc/init.d/syslog stop
I fuond the syslog did not stop. Does this script use -15 to kill the syslog process.
I don't know, but that should be easy to find out by looking to the script code.
Quote:
Step 2:
# kill 202 ( nothing wirk )
# kill -9 202 ( Force to kill is OK )
# /etc/init.d/start ( restarted syslog )

==> After restarting syslog daemon, I found that su can not work anymore. su command hang.
Your system looks broken.
Perhaps has it been hacked.
Quote:
Step 3:
/var/adm/messages # ls -l
........... root other 0 May 21 03:10 syslog
........... root other 13315727 May 21 03:10 syslog.0
==> So I think the newsyslog is suspect to cause the syslog rotation
failure.
Just to be sure, isn't you /var filesystem full ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IPv6 issue/dhclient issue ap0ll0 Linux - Wireless Networking 10 01-27-2006 04:58 PM
newsyslog lord-fu *BSD 2 10-28-2005 12:08 PM
Slack 10.1 -- Mouse issue / X11 issue Pozican Linux - General 4 04-19-2005 03:44 AM
webmin issue, poss security issue bejiita Slackware 3 11-03-2004 06:07 AM
Having Issue w/ Truetype fonts - Mozilla Issue clove Linux - Software 4 02-18-2004 08:26 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration