From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Mar 19 04:20:09 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3433016A423 for ; Sun, 19 Mar 2006 04:20:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C6D743D4C for ; Sun, 19 Mar 2006 04:20:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k2J4K7Ne045558 for ; Sun, 19 Mar 2006 04:20:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k2J4K7sE045557; Sun, 19 Mar 2006 04:20:07 GMT (envelope-from gnats) Resent-Date: Sun, 19 Mar 2006 04:20:07 GMT Resent-Message-Id: <200603190420.k2J4K7sE045557@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sean Winn Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBF0716A423 for ; Sun, 19 Mar 2006 04:16:49 +0000 (UTC) (envelope-from sean@pbx.voip.gothic.net.au) Received: from pbx.voip.gothic.net.au (pbx.voip.gothic.net.au [202.182.72.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8E0843D55 for ; Sun, 19 Mar 2006 04:16:48 +0000 (GMT) (envelope-from sean@pbx.voip.gothic.net.au) Received: from pbx.voip.gothic.net.au (localhost [127.0.0.1]) by pbx.voip.gothic.net.au (8.13.4/8.13.4) with ESMTP id k2J4Ggjs000823 for ; Sun, 19 Mar 2006 15:16:42 +1100 (EST) (envelope-from sean@pbx.voip.gothic.net.au) Received: (from sean@localhost) by pbx.voip.gothic.net.au (8.13.4/8.13.4/Submit) id k2J4GfHi000822; Sun, 19 Mar 2006 15:16:41 +1100 (EST) (envelope-from sean) Message-Id: <200603190416.k2J4GfHi000822@pbx.voip.gothic.net.au> Date: Sun, 19 Mar 2006 15:16:41 +1100 (EST) From: Sean Winn To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/94673: net/asterisk startup script fails to start X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Sean Winn List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Mar 2006 04:20:09 -0000 >Number: 94673 >Category: ports >Synopsis: net/asterisk startup script fails to start >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 19 04:20:07 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Sean Winn >Release: FreeBSD 6.1-PRERELEASE i386 >Organization: >Environment: System: FreeBSD pbx.voip.gothic.net.au 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #14: Sun Mar 19 14:14:03 EST 2006 root@pbx.voip.gothic.net.au:/usr/obj/usr/src/sys/ISDN i386 >Description: /usr/local/etc/rc.d/asterisk as installed is not sufficient to start asterisk on boot. There's at least a couple of problems: #!/bin/sh # PROVIDE asterisk # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON The PROVIDE line should be PROVIDE: otherwise the rc.subr greps won't find the script (previously it was asterisk.sh, so the legacy startup would still find it) The REQUIRE: NETWORKING SERVERS puts it too early in the boot sequence... Mar 19 15:01:38 pbx kernel: Starting asterisk. Mar 19 15:01:39 pbx kernel: ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/X11R6/lib /usr/local/lib /usr/local/lib/compat/pkg /usr/local/libdata/ldconfig /mysql It's configured before the ldconfig runs, so any package dependencies (eg. libpri) can't be dynamically linked. >How-To-Repeat: Install net/asterisk and reboot with asterisk_enable="YES" in /etc/rc.conf >Fix: PROVIDE -> PROVIDE: Fix the dependency order in the REQUIRE:/BEFORE: lines; I changed it to REQUIRE: DAEMON and no BEFORE: locally, but there's probably a better way. >Release-Note: >Audit-Trail: >Unformatted: