From owner-freebsd-questions@FreeBSD.ORG Tue Dec 5 11:33:19 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 5919316A412 for ; Tue, 5 Dec 2006 11:33:19 +0000 (UTC) (envelope-from tom@tomjudge.com) Received: from s200aog10.obsmtp.com (s200aog10.obsmtp.com [207.126.144.124]) by mx1.FreeBSD.org (Postfix) with SMTP id 523BB43CCA for ; Tue, 5 Dec 2006 11:32:37 +0000 (GMT) (envelope-from tom@tomjudge.com) Received: from source ([217.206.187.80]) by eu1sys200aob010.postini.com ([207.126.147.11]) with SMTP; Tue, 05 Dec 2006 11:33:15 UTC Received: from [10.0.0.79] (bwb.mintel.co.uk [10.0.0.79]) by rodney.mintel.co.uk (Postfix) with ESMTP id 7C8E7181471; Tue, 5 Dec 2006 11:33:14 +0000 (GMT) Message-ID: <45755861.90800@tomjudge.com> Date: Tue, 05 Dec 2006 11:30:41 +0000 From: Tom Judge User-Agent: Thunderbird 1.5.0.7 (X11/20060922) MIME-Version: 1.0 To: Gobbledegeek References: <463aea570612041043g280795cfxafef98a1cc765ae4@mail.gmail.com> In-Reply-To: <463aea570612041043g280795cfxafef98a1cc765ae4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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: Tue, 05 Dec 2006 11:33:19 -0000 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. > In the latest quagga port there is already an RC script ready for use. It gets installed to /usr/local/etc/rc.d/. Tom J