From owner-freebsd-perl@FreeBSD.ORG Sun Jan 11 16:09:42 2004 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A09C16A4CE for ; Sun, 11 Jan 2004 16:09:42 -0800 (PST) Received: from ds9.gotdns.org (ASt-Lambert-102-1-1-144.w193-251.abo.wanadoo.fr [193.251.191.144]) by mx1.FreeBSD.org (Postfix) with ESMTP id 002EC43D39 for ; Sun, 11 Jan 2004 16:09:40 -0800 (PST) (envelope-from root@ds9.gotdns.org) Received: from ds9.gotdns.org (localhost [127.0.0.1]) by ds9.gotdns.org (8.12.10/8.12.10) with ESMTP id i0C09VQT000660; Mon, 12 Jan 2004 01:09:31 +0100 (CET) (envelope-from root@ds9.gotdns.org) Received: from localhost (localhost [[UNIX: localhost]]) by ds9.gotdns.org (8.12.10/8.12.10/Submit) id i0C09Vda000659; Mon, 12 Jan 2004 01:09:31 +0100 (CET) (envelope-from root) From: "S. Lentz" To: Sergey Matveychuk , "S. Lentz" Date: Mon, 12 Jan 2004 01:09:30 +0100 User-Agent: KMail/1.5.4 References: <200401120003.49006.milter@free.fr> <4001E1A9.1060507@ciam.ru> In-Reply-To: <4001E1A9.1060507@ciam.ru> Organization: Friendy People MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401120109.30827.milter@free.fr> cc: perl@freebsd.org Subject: Re: SpamAssassin FreeBSD port : spamd.sh X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2004 00:09:42 -0000 Hi Serguey, On Monday 12 January 2004 00:52, Sergey Matveychuk wrote: > S. Lentz wrote: > > Find attached some FreeBSD spamd.sh I've created based on > > some existing rcng compliant ones (amavisd-new). > > I see no attachment here. Don't you forget to attach it? > It's strange : it is in my sentmail folder. Here it is again - this time through cut/paste in case there is some filter removing .sh files : #!/bin/sh # PROVIDE: spamd # REQUIRE: LOGIN # BEFORE: mail # KEYWORD: FreeBSD shutdown # # Add the following line to /etc/rc.conf to enable spamd: # # spamd_enable="YES" # extra_commands="reload" # Default spamd_enable="NO" command="/usr/local/bin/spamd" # See manpage for spamd(1) for all options pidfile="/var/run/spamd/spamd.pid" spamd_flags=" -a -c -d -r $pidfile" . /usr/local/etc/rc.subr name=spamd rcvar=`set_rcvar` stop_postcmd=stop_postcmd stop_postcmd() { rm -f $pidfile } load_rc_config $name run_rc_command "$1" PS : I nearly forgot to mention that this new init script requires a /var/run/spamd/ directory for storing the pidfile. (the owner is nobody/nobody on my system) which is not created by the current port.