From owner-freebsd-questions@FreeBSD.ORG Tue Jun 5 16:54:15 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 60EA216A421 for ; Tue, 5 Jun 2007 16:54:15 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 3FF0413C45A for ; Tue, 5 Jun 2007 16:54:15 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1HvcIQ-0005ln-Hi for freebsd-questions@freebsd.org; Tue, 05 Jun 2007 09:54:14 -0700 Message-ID: <10973422.post@talk.nabble.com> Date: Tue, 5 Jun 2007 09:54:14 -0700 (PDT) From: gmoniey To: freebsd-questions@freebsd.org In-Reply-To: <10963533.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: gmoniey@gmail.com References: <10902043.post@talk.nabble.com> <20070601131230.380039e8@localhost> <10906324.post@talk.nabble.com> <20070601154223.GC43330@gizmo.acns.msu.edu> <10953687.post@talk.nabble.com> <20070605031224.188cacc8@gumby.homeunix.com.> <20070605022154.GB71220@gizmo.acns.msu.edu> <10963533.post@talk.nabble.com> Subject: Re: startup / shutdown script (rc.d) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 16:54:15 -0000 thanks guys...i will try the new script tonight (unfortunately i cant work on this during the day...) also, Jerry...the line: '/usr/local/www/app/config/mongrel_cluster.yml >> /tmp/test.file' is only the second half of the mongrel_rails line (i think the forum just formatted it to come out to 2 lines...but it is really 1) gmoniey wrote: > > thanks for the ideas, i tried both of your suggestions...i manually ran > the rails.sh file, and everything worked as expected...so i dumped the > output to file...my .sh file looks as such: > > #!/bin/sh > case "$1" in > start) > echo "RAILS found start" >> /tmp/test.file > kldload accf_http >> /tmp/test.file > mongrel_rails cluster::start -v -C > /usr/local/www/app/config/mongrel_cluster.yml >> /tmp/test.file > /usr/local/www/app/script/backgroundrb start > ;; > stop) > echo "RAILS found stop" >> /tmp/test.file > mongrel_rails cluster::stop -v -C > /usr/local/www/app/config/mongrel_cluster.yml >> /tmp/test.file > /usr/local/www/app/script/backgroundrb stop > ;; > *) > echo "Usage: `basename $0` {start|stop}" >&2 > exit 64 > ;; > esac > > > and the test.file ended up with this after the reboot: > > $cat /tmp/test.file > RAILS found start > > > the weird part is that the Rails found stop never printed...and im not > sure why the mongrel_rails fails (im assuming that the kldload works fine > as it doesn't print out any error messages if it is successfull) > > i guess i will just keep playing with it... > > > > -- View this message in context: http://www.nabble.com/startup---shutdown-script-%28rc.d%29-tf3848895.html#a10973422 Sent from the freebsd-questions mailing list archive at Nabble.com.