- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: respawn of syslogd
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2003 11:15 PM
тАО03-10-2003 11:15 PM
When I run "init q" with syslogd still active it spawn up 7 of syslogd daemon. Why??
I also notice that the respawning is not immediate. How do i make it immediate so as not to lose the system logging capabilities.
Here are the entries I have tried on the inittab file;
sylg::respawn:/usr/sbin/syslogd -D
sylg:3:respawn:/usr/sbin/syslogd -D
sylg:123456:respawn:/usr/sbin/syslogd -D
How do i make it such that it only spawn up one syslogd daemon if the previous one got killed?
Solved! Go to Solution.
- Tags:
- syslogd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2003 11:42 PM
тАО03-10-2003 11:42 PM
Re: respawn of syslogd
There is a startup/shutdown script as part of the system start/stop procedures.
This how I would fix it.
# vi /etc/inittab
edit the entries and place a comment for each one with a '#'
Save the file
# init q
# ps -ef | grep syslogd | awk '{print $2}' | xargs kill -5
# /sbin/init.d/syslogd start
There are better ways to monitor daemons with scripts and also third party products.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2003 11:54 PM
тАО03-10-2003 11:54 PM
SolutionI tend to agree with Michael... syslogd is not intended to be run from inittab.
However, your problem is, that by default syslogd runs as daemon, which means, it detaches and fork()s itself to the background. Due to this init(1M) has problems to track if it's running. :)
This may be a workaround: run syslogd in debug mode and redirect its output to /dev/null. Not really nice. BTW, I would only specifiy run levels 2-4.
sylg:34:respawn:/usr/sbin/syslogd -D -d >/dev/null 2>&1
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2003 11:55 PM
тАО03-10-2003 11:55 PM
Re: respawn of syslogd
Because one of my MC/Service guard dismount the shared disk where the syslogd is writing to it which killed off syslogd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2003 12:07 AM
тАО03-11-2003 12:07 AM
Re: respawn of syslogd
I tried your method but i got this msg in the syslog.log file, what does it means by kernel messages are disable?? how to enable it??
Mar 11 03:06:55 prx03 syslogd: the kernel messages are already disabled: Not a typewriter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2003 12:35 AM
тАО03-11-2003 12:35 AM
Re: respawn of syslogd
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2003 12:48 AM
тАО03-11-2003 12:48 AM
Re: respawn of syslogd
I also got some message at the console saying about ...Address is already bind for /dev/log.un....
Is this refer to the same reason you mention??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2003 01:23 AM
тАО03-11-2003 01:23 AM
Re: respawn of syslogd
# kill $(UNIX95= ps -opid= -Csyslogd)
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2003 02:06 AM
тАО03-11-2003 02:06 AM
Re: respawn of syslogd
Thanks for the help, you solve my headache. :)
Hi Micheal,
Thanks for the tips also, appreciate it.
regards
YLTAN