From owner-freebsd-rc@FreeBSD.ORG Tue Feb 27 13:55:31 2007 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 82B5616A403 for ; Tue, 27 Feb 2007 13:55:31 +0000 (UTC) (envelope-from minotaur@padonki.org.ua) Received: from crow.padonki.org.ua (crow.padonki.org.ua [213.186.192.71]) by mx1.freebsd.org (Postfix) with ESMTP id 3A4E813C48D for ; Tue, 27 Feb 2007 13:55:31 +0000 (UTC) (envelope-from minotaur@padonki.org.ua) Received: from minotaur by crow.padonki.org.ua with local (Exim 4.66 (FreeBSD)) (envelope-from ) id 1HM2XA-000A8b-PC; Tue, 27 Feb 2007 15:38:24 +0200 Date: Tue, 27 Feb 2007 15:38:24 +0200 From: Alexander Shikoff To: freebsd-rc@freebsd.org Message-ID: <20070227133824.GA49950@crete.org.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-u Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) Sender: Alexander Shikoff Subject: rc.subr in 6.2 RELEASE X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Shikoff List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2007 13:55:31 -0000 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@crete.org.ua Mob.: +380 67 946 31 49