From owner-freebsd-ports@FreeBSD.ORG Wed May 14 01:14:25 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 02787106567F for ; Wed, 14 May 2008 01:14:25 +0000 (UTC) (envelope-from sahil@tandon.net) Received: from bulwark.hamla.org (bulwark.hamla.org [69.55.228.210]) by mx1.freebsd.org (Postfix) with ESMTP id DE0F68FC22 for ; Wed, 14 May 2008 01:14:24 +0000 (UTC) (envelope-from sahil@tandon.net) Received: from localhost (bulwark [69.55.228.210]) by bulwark.hamla.org (Postfix) with ESMTP id 7D1431CC93; Tue, 13 May 2008 18:14:24 -0700 (PDT) X-Virus-Scanned: by ClamAV at bulwark.hamla.org Received: from bulwark.hamla.org ([69.55.228.210]) by localhost (bulwark.hamla.org [69.55.228.210]) (amavisd-new, port 10024) with LMTP id djfBDIKFY46V; Tue, 13 May 2008 18:14:04 -0700 (PDT) Date: Tue, 13 May 2008 21:13:55 -0400 From: Sahil Tandon To: Paul Schmehl Message-ID: <20080514011355.GA44926@shepherd> References: <14848575EFE82AE05B2027F2@utd65257.utdallas.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14848575EFE82AE05B2027F2@utd65257.utdallas.edu> Cc: FreeBSD Ports Subject: Re: rc.d startup script problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "freebsd-ports@freebsd.org" List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 May 2008 01:14:25 -0000 * Paul Schmehl [05-13-2008]: > This script will not start if you change the name or location of the conf > file in /etc/rc.conf. For some reason it's not parsing /etc/rc.conf. > Anyone know why? [...] > . /etc/rc.subr > > name="sancp_agent" > rcvar=`set_rcvar` > command="/usr/local/bin/sguil-sensor/sancp_agent.tcl" > procname="/usr/local/bin/tclsh8.4" > pidfile="/var/run/${name}.pid" > check_pidfile="${pidfile} ${procname} /bin/sh" > > [ -z "$sancp_agent_enable" ] && sancp_agent_enable="NO" > [ -z "$sancp_agent_conf" ] && > sancp_agent_conf="/usr/local/etc/sguil-sensor/sancp_agent.conf" > [ -z "$sancp_agent_flags" ] && sancp_agent_flags="-D" > > [ -n "$sancp_agent_conf" ] && sancp_agent_flags="$sancp_agent_flags -c > $sancp_agent_conf" > > load_rc_config $name Does anything change if you set this higher, say, right below check_pidfile but before all instances of sancp_agent_*? [...] -- Sahil Tandon