Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302282 - mail-filter/sid-milter-1.0.0-r4 fails to start if a local socket is already present
Summary: mail-filter/sid-milter-1.0.0-r4 fails to start if a local socket is already p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-26 04:13 UTC by Aurélien Requiem
Modified: 2010-09-24 20:00 UTC (History)
1 user (show)

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


Attachments
init script (sid-filter.diff,897 bytes, patch)
2010-01-26 04:14 UTC, Aurélien Requiem
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aurélien Requiem 2010-01-26 04:13:14 UTC
After a server crash, the server rebooted and sid-filter tried to start. As the unix socket was present on the file system, the service refused to start. In the logs, the following lines appeared :

sid-filter[26560]: Sendmail Sender-ID Filter: Unable to bind to port local:/var/run/sid-filter/sid-filter.sock: Address already in use
sid-filter[26560]: Sendmail Sender-ID Filter: Unable to create listening socket on conn local:/var/run/sid-filter/sid-filter.sock
sid-filter[26560]: smfi_opensocket() failed

Abviously the service wasn't running.

Reproducible: Always

Steps to Reproduce:
1. crash the server, or try "pkill -9 sid-filter" to simulate the crash
2. /etc/init.d/sid-filter restart


Actual Results:  
The service doesn't start.

Expected Results:  
The service has started.

As to have a quick fix on this problem, please see attachment to this bug. It's a modification of of the init script.

The following test have been done :
- normal restart
- normal start (stop then start)
- start when service is already running
- start after service crash and socket present
Comment 1 Aurélien Requiem 2010-01-26 04:14:30 UTC
Created attachment 217439 [details, diff]
init script
Comment 2 Aurélien Requiem 2010-01-26 04:23:47 UTC
By the way, as you can see in the patch, the warning message is taken from the mysql init script and is present to warn the admin. I also checked if the process was still running to avoid a 2nd start (just in case).

Also in case of an inet socket, the function ignores the checking.

All the above tests are fine in both unix and inet sockets.
Comment 3 Aurélien Requiem 2010-03-29 00:48:06 UTC
Hi Gentoo.

Is there anyone who wish to comment/commit on this bug ?
It's been there for 2 months now with a working solution but nothing happened.

thanks
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2010-09-24 20:00:35 UTC
Fixed in rev r5.
Thanks and sorry for the long delay.