From owner-freebsd-questions@FreeBSD.ORG Tue Jun 5 14:50:00 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 095A116A400 for ; Tue, 5 Jun 2007 14:50:00 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 9FB5613C455 for ; Tue, 5 Jun 2007 14:49:59 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l55EjLcw073481; Tue, 5 Jun 2007 10:45:22 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l55EjLCx073480; Tue, 5 Jun 2007 10:45:21 -0400 (EDT) (envelope-from jerrymc) Date: Tue, 5 Jun 2007 10:45:21 -0400 From: Jerry McAllister To: gmoniey Message-ID: <20070605144521.GA73434@gizmo.acns.msu.edu> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10963533.post@talk.nabble.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org 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 14:50:00 -0000 On Mon, Jun 04, 2007 at 10:52:43PM -0700, 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) Well, it looks like something after the case-start echo did not work and things just died there and nothing else ran. I would also put an echo just before the start and the stop sections of the rc.d script end eg, just before the ';;' in each.. What is the '/usr/local/www/app/config/mongrel_cluster.yml >> /tmp/test.file' supposed to accomplish? ////jerry > > 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#a10963533 > Sent from the freebsd-questions mailing list archive at Nabble.com. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"