Date: Fri, 13 Jan 2006 02:17:21 -0500 From: Mike Jakubik <mikej@rogers.com> To: j.koopmann@seceidos.de Cc: ports@freebsd.org Subject: FreeBSD Port: mail/mailscanner Message-ID: <43C75401.5080807@rogers.com>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43C75401.5080807>