From owner-freebsd-questions@FreeBSD.ORG Tue Dec 5 17:12:04 2006 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 7346C16A494 for ; Tue, 5 Dec 2006 17:12:04 +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 806B443CB1 for ; Tue, 5 Dec 2006 17:11:13 +0000 (GMT) (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 kB5H9Ue2034507; Tue, 5 Dec 2006 12:09:30 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id kB5H9UJ2034506; Tue, 5 Dec 2006 12:09:30 -0500 (EST) (envelope-from jerrymc) Date: Tue, 5 Dec 2006 12:09:30 -0500 From: Jerry McAllister To: Tom Judge Message-ID: <20061205170930.GD34126@gizmo.acns.msu.edu> References: <463aea570612041043g280795cfxafef98a1cc765ae4@mail.gmail.com> <45755861.90800@tomjudge.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45755861.90800@tomjudge.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org, Gobbledegeek Subject: Re: custom rc.d script not working 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 Dec 2006 17:12:04 -0000 On Tue, Dec 05, 2006 at 11:30:41AM +0000, Tom Judge wrote: > Gobbledegeek wrote: > >I compiled quagga 0.99.5 from source (not freebsd port) and wrote this > >little script in the /etc/rc.d/zebra file. > >------------------------------- > >#!/bin/sh > > > ># PROVIDE: zebra > ># REQUIRE: NETWORKING > > > >. /etc/rc.subr > > > >name="zebra" > >rcvar=${name}_enable > >required_files="/usr/local/etc/${name}.conf" > >command="/usr/local/sbin/${name}" > >command_args="-d" > >pidfile="/var/run/${name}.pid" > >load_rc_config $name > >run_rc_command "$1" > >---------------------------------- > > > >/etc/rc.conf has zebra_enable="yes" > > > >However it only starts zebra when I execute it manually from > >command line. When I boot freebsd, it executes and I see > >message in boot screen that zebra is starting, but on login I find > >zebra isn't running. > >all files in /usr/local/sbin/ for zebra executables are owned by > >quagga/quagga user/group. > > > >Once I get this working, I will ofcourse add scripts for ospfd and > >bgpd and isisd.. but it beats me why this isn't working... > > > >This is on freebsd 6.2 RC1 i386. > > > >Thanks very much in advance for your help... > > > >PS: Please CC me as I am not subscribed. > > First, I presume you mean to say that you put the script in the '/usr/local/etc/rc.d/' directory and not just /etc/rc.d Secondly, my most frequent error is error with these is to forget to make them executable. If the script does not have execute permission, it is ignored. ////jerry > > _______________________________________________ > 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"