Subject: Problems with stop in rc script
To: None <netbsd-users@netbsd.org>
From: None <francus@yossi.com>
List: netbsd-users
Date: 05/18/2003 21:32:34
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?