Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Thread

Pidfile in 4.0 alpha3

Pidfile in 4.0 alpha3

2007-05-04 by ca35763+mgl@realsimplemail.com

Getting an error on start-up:

May  4 14:14:44 mostly milter-greylist: Cannot open pidfile 
"/var/run/milter-greylist.pid" for writing: Permission denied

Configured with only one option:

./configure --with-user=smmsp

Re: [milter-greylist] Pidfile in 4.0 alpha3

2007-05-04 by shuttlebox

On 5/4/07, ca35763+mgl@...
<ca35763+mgl@...> wrote:
>  Getting an error on start-up:
>
>  May  4 14:14:44 mostly milter-greylist: Cannot open pidfile
>  "/var/run/milter-greylist.pid" for writing: Permission denied
>
>  Configured with only one option:
>
>  ./configure --with-user=smmsp

...and does the user smmsp have write permissions in /var/run?

-- 
/peter

Re: [milter-greylist] Pidfile in 4.0 alpha3

2007-05-05 by ca35763+mgl@realsimplemail.com

On Fri, 4 May 2007, shuttlebox wrote:

> Date: Fri, 4 May 2007 21:40:27 +0200
> From: shuttlebox <shuttlebox@...>
> Reply-To: milter-greylist@yahoogroups.com
> To: milter-greylist@yahoogroups.com
> Subject: Re: [milter-greylist] Pidfile in 4.0 alpha3
> 
> On 5/4/07, ca35763+mgl@...
> <ca35763+mgl@...> wrote:
>>  Getting an error on start-up:
>>
>>  May  4 14:14:44 mostly milter-greylist: Cannot open pidfile
>>  "/var/run/milter-greylist.pid" for writing: Permission denied
>>
>>  Configured with only one option:
>>
>>  ./configure --with-user=smmsp
>
> ...and does the user smmsp have write permissions in /var/run?
>
> -- 
> /peter
>

Obviously it can't write to /var/run!  My intent was to point out that 
alpha 2 wrote the pidfile as root.  The alpha 3 "Cleanup stale PID file on 
startup" apparently changed pidfile user too.  I didn't know if that was 
the intended behavior.

Anyway, I moved the pidfile to the database directory which is writable 
and works.

Thanks.

Re: [milter-greylist] Pidfile in 4.0 alpha3

2007-05-05 by manu@netbsd.org

<ca35763+mgl@...> wrote:

> Obviously it can't write to /var/run!  My intent was to point out that
> alpha 2 wrote the pidfile as root.  The alpha 3 "Cleanup stale PID file on
> startup" apparently changed pidfile user too.  I didn't know if that was
> the intended behavior.

Yes, that change introduce a nasty upgrade trap. It will be fixed in
alpha 4.

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...

[HEADS-UP] Upgrade pitfall in 4.0 alpha3

2007-05-05 by Emmanuel Dreyfus

Just in case people did not notice, I repost it with a more visible
title. alpha4 will fix the issue.

Note that if the user milter-greylist runs as (smmsp for instance) can
write to the directory where the PID file is stored (/var/run for instance), 
then you'll have no problem.

On Sat, May 05, 2007 at 08:11:21AM +0200, manu@... wrote:
> <ca35763+mgl@...> wrote:
> 
> > Obviously it can't write to /var/run!  My intent was to point out that
> > alpha 2 wrote the pidfile as root.  The alpha 3 "Cleanup stale PID file on
> > startup" apparently changed pidfile user too.  I didn't know if that was
> > the intended behavior.
> 
> Yes, that change introduce a nasty upgrade trap. It will be fixed in
> alpha 4.
> 
> -- 
> Emmanuel Dreyfus
> http://hcpnet.free.fr/pubz
> manu@...

-- 
Emmanuel Dreyfus
manu@...

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.