Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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?
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.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.