From owner-freebsd-questions@FreeBSD.ORG Sat Mar 19 10:36:59 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9188616A4D4 for ; Sat, 19 Mar 2005 10:36:59 +0000 (GMT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25D7D43D1D for ; Sat, 19 Mar 2005 10:36:59 +0000 (GMT) (envelope-from dgl@kirk.dlee.org) Received: from kirk.dlee.org ([69.143.16.144]) by comcast.net (rwcrmhc13) with ESMTP id <2005031910365201500ej5oae>; Sat, 19 Mar 2005 10:36:53 +0000 Received: from kirk.dlee.org (dgl@localhost.dlee.org [127.0.0.1]) by kirk.dlee.org (8.12.11/8.12.11) with ESMTP id j2JAapkl081327 for ; Sat, 19 Mar 2005 05:36:51 -0500 (EST) (envelope-from dgl@kirk.dlee.org) Received: (from dgl@localhost) by kirk.dlee.org (8.12.11/8.12.11/Submit) id j2JAao7r081326 for freebsd-questions@freebsd.org; Sat, 19 Mar 2005 05:36:50 -0500 (EST) (envelope-from dgl) Date: Sat, 19 Mar 2005 05:36:49 -0500 From: Doug Lee To: freebsd-questions@freebsd.org Message-ID: <20050319103648.GW4670@kirk.dlee.org> Mail-Followup-To: Doug Lee , freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: Bartimaeus Group User-Agent: Mutt/1.5.6i Subject: How to set environment variable for a port daemon? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 10:36:59 -0000 SpamAssassin now recommends an environment variable setting like "export LANG=en_US" be made when unicode support is not needed, for performance reasons, as of the migration to Perl 5.8, which uses unicode by default at some expense to SpamAssassin's performance. I'm trying to figure out the best way to make that setting apply to spamd, the SpamAssassin daemon. From my read of docs and my scan of /usr/local/etc/rc.subr, I don't think throwing the setting into spamd_flags in /etc/rc.conf will work; that would look like this: spamd_flags="LANG=en_US -c -d -m 3 -r /var/run/spamd.pid" but I'm hoping either I'm wrong or there's a similarly easy solution. Reason for interest: I'm running SpamAssassin on an old P166, and as of my latest port upgrade, its performance dropped dramatically, and it actually began interfering with day-to-day activities on this old box. I'm hoping the unicode evasion will help with that, though I don't know how likely this is. Please Cc replies to me. Thanks much for any advice. -- Doug Lee dgl@dlee.org http://www.dlee.org Bartimaeus Group doug@bartsite.com http://www.bartsite.com "Believe, when you are most unhappy, that there is something for you to do in the world. So long as you can sweeten another's pain, life is not in vain." --Helen Keller