From owner-freebsd-questions@FreeBSD.ORG Wed Dec 6 03:26:39 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 9B64116A407 for ; Wed, 6 Dec 2006 03:26:39 +0000 (UTC) (envelope-from gobbledegeek@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6766943CA2 for ; Wed, 6 Dec 2006 03:25:56 +0000 (GMT) (envelope-from gobbledegeek@gmail.com) Received: by wr-out-0506.google.com with SMTP id i28so66247wra for ; Tue, 05 Dec 2006 19:26:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HntPAvBckwBCmJFX7ofcMEB7GVO0Ee/sxjWR2vBJ7AONfRb0ucs0Mhslsr6psY2gWIzsqheuvYE3AJekzTqPLuMHYieSuHnvODjFV7FX4q7bLQKHRacCfWwtDhgSHfgiaru+pVXpGz4EquiG64/ffb1ajSctKMRjXGxZKrIxMXI= Received: by 10.78.117.10 with SMTP id p10mr175135huc.1165375597585; Tue, 05 Dec 2006 19:26:37 -0800 (PST) Received: by 10.78.176.1 with HTTP; Tue, 5 Dec 2006 19:26:37 -0800 (PST) Message-ID: <463aea570612051926s1dfffb9doa8b8da13d504af05@mail.gmail.com> Date: Wed, 6 Dec 2006 08:56:37 +0530 From: Gobbledegeek To: "Jerry McAllister" In-Reply-To: <20061205170930.GD34126@gizmo.acns.msu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <463aea570612041043g280795cfxafef98a1cc765ae4@mail.gmail.com> <45755861.90800@tomjudge.com> <20061205170930.GD34126@gizmo.acns.msu.edu> Cc: Tom Judge , freebsd-questions@freebsd.org 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: Wed, 06 Dec 2006 03:26:39 -0000 My script is in /etc/rc.d and it executes - only when I login and find no zebra process... executing it manually starts zebra allright. Why should I put it in /usr/local/etc/rc.d ? I think I see a 0.99.5 version in freshports.org. I'll just use that instead. Thanks ye all for the help... Rgrds On 12/5/06, Jerry McAllister wrote: > 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" > -- Rgrds GobbledeGeek [Everything but Gobbledegook.. !!]