On Tue, Nov 23, 2004 at 11:25:28AM -0600, Jon Dossey wrote: > > Setup: Redhat FC2, sendmail 8.13.1, spamassassin 3.0.1, and > spamass-milter 0.2.0 > > Error: Nov 23 11:21:45 hostname spamd[3966]: Can't unlink > /var/run/spamd.socket: Permission denied > > Here's the info on the socket: > srw-rw-rw- 1 spamd root 0 Nov 23 11:21 spamd.socket > > And worth noting: > spamd 4029 0.0 2.5 27796 23052 ? S 11:40 0:00 > /usr/bin/spamd -d -m5 --username=spamd --pidfile=/home/spamd/spamd.pid > --socketpath=/var/run/spamd.socket > > Is it because the socket is still in use, possibly by spamass-milter?
No. UNIX-like systems are multi-user and robust to things like people wanting to do things like remove files. From the unlink(2) manpage: If the name referred to a socket, fifo or device the name for it is removed but processes which have the object open may continue to use it. Also, by convention, things like pid files usually go in /var/run. FWIW, the error message is a warning, and not a fatal error. Also, it seems easier and more flexable to just use the default TCP socket instead of a UNIX socket. I'm not familiar with any advantages of using a UNIX socket over a TCP one. Mike -- /-----------------------------------------\ | Michael Barnes <[EMAIL PROTECTED]> | | UNIX Systems Administrator | | College of William and Mary | | Phone: (757) 879-3930 | \-----------------------------------------/