rc.subr in 6.2 RELEASE
Alexander Shikoff
minotaur at crete.org.ua
Tue Feb 27 13:55:31 UTC 2007
Hello,
I guess my issue is more related to this mailing list rather than to
SpamAssassin one.
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:
# /usr/local/etc/rc.d/sa-spamd stop
spamd not running? (check /var/run/spamd/spamd.pid).
But:
# cat /var/run/spamd/spamd.pid
98080
# ps axww|grep spamd
98080 ?? Ss 0:02,24 /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,bayes -d -r /var/run/spamd/spamd.pid
If --debug flag is disabled then output of ps axww turned into:
# ps axww|grep spamd
8483 ?? Ss 0:00,50 /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 -d -r /var/run/spamd/spamd.pid (perl5.8.8)
and rcNG script works perfectly.
My question: is there a way to make rcNG script work in first case?
Thanks.
--
Kind Regards, Alexander Shikoff
minotaur at crete.org.ua
Mob.: +380 67 946 31 49
More information about the freebsd-rc
mailing list