On Sat, 6 Oct 2018 15:59:10 +0100
RW wrote:

> On Thu, 4 Oct 2018 12:39:06 -0700 (MST)
> Vlad Shpolyanskiy wrote:
> 
> > Hi All!
> > 
> > I have recently upgraded SA to the latest version.
> > I'm running SA on FreeBSD 11.2-RELEASE-p4, SA installed via pkg
> > utility with default set of options.
> > The running command looks like:
> > /usr/local/bin/perl -T -w /usr/local/bin/spamd -m 5 -4 -d -r
> > /var/run/spamd/spamd.pid
> > Now I have a problem with reloading SA, e.g. after sa-update.
> > Reloading first time works as expected, but second time fails with
> > error: spamd not running? (check /var/run/spamd/spamd.pid)
> > The pid file is present, the permissions are fine.  
> 
> But is spamd actually still running? Did you get the pid from the file
> and run:
> 
>    ps <pid>

What's going on is that when spamd starts-up, the command field in the
output of ps is: 

    /usr/local/bin/perl -T -w /usr/local/bin/spamd ...

When the rc reload command is used (which sends HUP to spamd) this
changes to:
    
    /usr/local/bin/perl5.26.2 -T -w /usr/local/bin/spamd ...

perl and perl5.26.2 are the same binary hard-linked.

The second version doesn't match what the rc scripts are expecting,
which makes it look like spamd has terminated and the pid has been
reassigned to a different process. 

Reply via email to