FreeBSD Port: mail/mailscanner
Mike Jakubik
mikej at rogers.com
Thu Jan 12 23:16:33 PST 2006
The rc startup script not longer functions as intended, as MailScanner
has changed its process names to dynamically report current status.
---
#!/bin/sh
msbindir=/usr/local/libexec/MailScanner
process=MailScanner
config=/usr/local/etc/MailScanner/MailScanner.conf
PIDFILE=/var/run/MailScanner.pid
start_ms()
{
pid=`ps -axww |
grep '[ ]'$msbindir/$process |
awk '{print $1}'`
if [ "x$pid" = "x" ]; then
# Quietly try to raise the open_files limit
ulimit -n 2000 >/dev/null 2>&1
# Restart it
PATH=${msbindir}:$PATH
echo Starting MailScanner...
cd $msbindir
$process $config
else
echo MailScanner running with pid $pid
fi
}
---
Therefore this method of identifying a running pid no longer works. I
guess when a RCng startup script is implemented, this will not be a
concern though.
More information about the freebsd-ports
mailing list