Subject: Re: Problems with stop in rc script
To: Ron Roskens <roskens@elfin.net>
From: None <francus@yossi.com>
List: netbsd-users
Date: 05/18/2003 22:32:26
Definitely a workaround for what I need..
Does anyone have a more general soultion?
Quoting Ron Roskens <roskens@elfin.net>:
> 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?
>