Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313739 - net-analyzer/ndoutils: UNIX socket is not removed before start if crashed blocks restart
Summary: net-analyzer/ndoutils: UNIX socket is not removed before start if crashed blo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tobias Scherbaum (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-07 20:03 UTC by Robin Johnson
Modified: 2010-10-30 14:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-04-07 20:03:15 UTC
If ndo2db or the machine crashes, then it will not start up corrected the next time, as there is no check to remove the stale unix socket.

# ls -la /var/nagios/ndo.sock ; ps -ef |grep ndo ; /etc/init.d/ndo2db start ; rm /var/nagios/ndo.sock ;  /etc/init.d/ndo2db start
srwxr-xr-x 1 nagios nagios 0 Apr  7 19:53 /var/nagios/ndo.sock
root     21758 31748  0 20:00 pts/1    00:00:00 grep --colour=auto ndo
 * Starting ndo2db ...
Could not bind socket: Address already in use       [ !! ]
 * Starting ndo2db ... [ ok ]
#
Comment 1 Tobias Scherbaum (RETIRED) gentoo-dev 2010-10-30 14:14:44 UTC
Fixed in CVS.