severity 373812 minor thanks On Thu, 15 Jun 2006, Herbert Straub wrote: > I dectect a communication error between sendmail and spamass-milter, > if /var/run is on a tmpfs. Sendmail is started after spamass-milter > and therefor the socket cannot be created. One solution is an > alternative place for SOCKET: /var/run/spamass-milter/spamass.sock. > This could be specified in the /etc/default/spamass-milter file: > > # Socket location > SOCKET=/var/run/spamass-milter/spamass.sock > > And this modification in /etc/init.d/spamass-milter creates the Socket > directory, if not available: > > --- spamass-milter.ORIG 2006-06-15 17:58:01.000000000 +0200 > +++ spamass-milter 2006-06-15 18:10:31.000000000 +0200 > @@ -52,6 +52,10 @@ > start) > echo -n "Starting $DESC: " > > + # create the socket directory, if /var/run on tempfs > + DIRECTORY=`echo $SOCKET | sed 's!/[^/]\+$!!'`
You really want to use dirname here > Files under this directory [/var/run] must be cleared (removed or > truncated as appropriate) at the beginning of the boot process. Yeah, this doesn't apply to directories though. Anyway, it's reasonable to change, but I'm going to directly parse the -d option out of OPTIONS because otherwise I'll break anyone who has already configured a separate -d using the OPTIONS configuration that I already support. Don Armstrong -- If you find it impossible to believe that the universe didn't have a creator, why don't you find it impossible that your creator didn't have one either? -- Anonymous Coward http://slashdot.org/comments.pl?sid=167556&cid=13970629 http://www.donarmstrong.com http://rzlab.ucr.edu
signature.asc
Description: Digital signature

