Subject: Re: Problems with stop in rc script
To: Ron Roskens <email@example.com>
From: None <firstname.lastname@example.org>
Date: 05/18/2003 22:32:26
Definitely a workaround for what I need..
Does anyone have a more general soultion?
Quoting Ron Roskens <email@example.com>:
> I noticed the same thing with amavisd-new 20030314-p2. I modified amavisd
> to not change $0 at line 5894.
> On Sun, 18 May 2003 firstname.lastname@example.org 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?