Date: Wed, 28 Feb 2007 10:35:28 +0200 From: Alexander Shikoff <minotaur@crete.org.ua> To: Doug Barton <dougb@FreeBSD.org> Cc: scheidell@secnap.net, freebsd-rc@freebsd.org Subject: Re: rc.subr in 6.2 RELEASE Message-ID: <20070228083528.GA78906@crete.org.ua> In-Reply-To: <45E47739.9050108@FreeBSD.org> References: <20070227133824.GA49950@crete.org.ua> <45E47739.9050108@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 27, 2007 at 10:23:53AM -0800, Doug Barton wrote: > Alexander Shikoff wrote: > > Hello, > > > > I guess my issue is more related to this mailing list rather than to > > SpamAssassin one. > > You could also have submitted your question to > freebsd-ports@freebsd.org, but there is nothing wrong with asking here. :) > > > I use SpamAssassin built from ports tree on 6.2-RELEASE box. > > When debug is enabled via adding --debug flag to spamd_flags in rc.conf > > then rcNG script does not stop process: > > It's not rcNG anymore, btw. We refer to it as rc.d now. And can you > send the output of 'grep spamd /etc/rc.conf*' please? I suspect that > your problem is the way that the default flags are specified in the > script. We have: > > : ${spamd_flags="-c %%SQL_FLAG%% %%RUN_AS_USER%%"} spamd_enable="YES" spamd_flags="\ --siteconfigpath=/usr/local/etc/mail/spamassassin \ -x -d -l \ --max-conn-per-child=128 \ --timeout-tcp=10 \ --timeout-child=300 \ --pidfile=/var/run/spamd/spamd.pid \ --syslog=local0 \ --username=spamd \ --groupname=spamd \ --allowed-ips=127.0.0.0/8 \ --listen-ip=127.0.0.1 \ --debug=received-header,bayes" As I can see the output of 'ps axww' is depend on next lines in spamd: # grep -A3 '^sub daem' /usr/local/bin/spamd sub daemonize { # Pretty command line in ps $0 = join (' ', $ORIG_ARG0, @ORIG_ARGV) unless would_log("dbg"); ^^^^^^^^^^^^^^^^^^^^^^^^^^ i.e. when --debug flag is specified then output of 'ps axww' looks like 80028 ?? Ss 0:04,68 /usr/local/bin/perl5.8.8 -T -w /usr/local/bin/spamd --siteconfigpath=/usr/local/etc/mail/spamassassin -x -d -l --max-conn-per-child=128 --timeout-tcp=10 --timeout-child=300 --pidfile=/var/run/spamd/spamd.pid --syslog=local0 --username=spamd --groupname=spamd --allowed-ips=127.0.0.0/8 --listen-ip=127.0.0.1 --debug received-header -d -r /var/run/spamd/spamd.pid That is rc.d script does not affect that output. Really rc.subr function _find_processes() cannot find neccessary process in that case. -- Kind Regards, Alexander Shikoff minotaur@crete.org.ua Mob.: +380 67 946 31 49
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070228083528.GA78906>