From owner-freebsd-questions@FreeBSD.ORG Mon Dec 4 18:49:32 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 87F9D16A415 for ; Mon, 4 Dec 2006 18:49:32 +0000 (UTC) (envelope-from gobbledegeek@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA77743CA6 for ; Mon, 4 Dec 2006 18:48:57 +0000 (GMT) (envelope-from gobbledegeek@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so2748886uge for ; Mon, 04 Dec 2006 10:49:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=CUt8DSMc/R8vYKzEthWI8GLgyIJaYikLdw9nlv9wjPKcYKUfOuTlxYq+8TF+m7mGUgfrpYBJzl4c6PwxACsigFySVYJWOUzIbZ56uonTPOCXf1O1Mk72UaYw8XaX7NZydIkEXiG4BBBDh6yzLuELwiLN19K0U0qw+OfmvGz8pUM= Received: by 10.78.149.15 with SMTP id w15mr7948016hud.1165257800774; Mon, 04 Dec 2006 10:43:20 -0800 (PST) Received: by 10.78.176.1 with HTTP; Mon, 4 Dec 2006 10:43:20 -0800 (PST) Message-ID: <463aea570612041043g280795cfxafef98a1cc765ae4@mail.gmail.com> Date: Tue, 5 Dec 2006 00:13:20 +0530 From: Gobbledegeek To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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: Mon, 04 Dec 2006 18:49:32 -0000 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. -- Rgrds GobbledeGeek [Everything but Gobbledegook.. !!]