rc.subr in 6.2 RELEASE
Alexander Shikoff
minotaur at crete.org.ua
Wed Feb 28 08:35:32 UTC 2007
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 at 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 at crete.org.ua
Mob.: +380 67 946 31 49
More information about the freebsd-rc
mailing list