From owner-freebsd-ports@FreeBSD.ORG Tue May 13 20:26:01 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 A39B41065675 for ; Tue, 13 May 2008 20:26:01 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from smtp3.utdallas.edu (smtp3.utdallas.edu [129.110.20.110]) by mx1.freebsd.org (Postfix) with ESMTP id 851CF8FC1E for ; Tue, 13 May 2008 20:26:01 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from utd65257.utdallas.edu (utd65257.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTPSA id EB7CA23DEA for ; Tue, 13 May 2008 15:26:00 -0500 (CDT) Date: Tue, 13 May 2008 15:26:01 -0500 From: Paul Schmehl To: FreeBSD Ports Message-ID: <08D373863E038BE97764AA76@utd65257.utdallas.edu> In-Reply-To: <4829F26D.3000708@delphij.net> References: <14848575EFE82AE05B2027F2@utd65257.utdallas.edu> <4829F26D.3000708@delphij.net> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: rc.d startup script problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 May 2008 20:26:01 -0000 --On Tuesday, May 13, 2008 12:56:29 -0700 Xin LI wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Paul Schmehl wrote: >| 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? > > One suggestion, could you please try to execute the script with 'sh -x' > to see what it is actually executing? > I should mention, I'm running 7.0 STABLE # uname -imprsv FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #6: Wed Apr 16 17:14:28 CDT 2008 root@utd65257.utdallas.edu:/usr/obj/usr/src/sys/GENERIC i386 i386 GENERIC This is odd. It finds the conf setting in /etc/rc.conf: + dbus_enable=YES + hald_enable=YES + sancp_agent_enable=YES + sancp_agent_conf=/usr/local/etc/sguil-sensor/sancp_agent-ANYSERVER.conf + sourced_files=:/etc/rc.conf::/etc/rc.conf.local: + [ -r /etc/rc.conf.local ] + _rc_conf_loaded=true + [ -f /etc/rc.conf.d/sancp_agent ] + run_rc_command start + _return=0 But then it never uses it. ??? + eval rc_flags=$sancp_agent_flags + rc_flags=-D -c /usr/local/etc/sguil-sensor/sancp_agent.conf -- Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/