Subject: Re: Problems with stop in rc script
To: None <francus@yossi.com>
From: Ron Roskens <roskens@elfin.net>
List: netbsd-users
Date: 05/18/2003 21:29:17
I noticed the same thing with amavisd-new 20030314-p2. I modified amavisd
to not change $0 at line 5894.

Ron

On Sun, 18 May 2003 francus@yossi.com wrote:

> Started running amavisd on my systems to help filter out spam. Amavisd
> puts its pid in /var/amavis/amavisd.pid. That can be specified easily
> in the rc script. The problem I am running into is that the ps
> returns
>
> perl: amavisd (master)
>
> Now the way the stop command works is it picks up the pid from the pidfile
> and then does a
>
> ps -o 'pid, command' -p <pid in pidfile> | while read _npid _arg0 _argv
>
> and checks the command name against what is in $_argo which in this case
> is perl and thus fails.
>
> Any suggestions for a workaround?