Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Mar 2006 15:16:41 +1100 (EST)
From:      Sean Winn <sean@gothic.net.au>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/94673: net/asterisk startup script fails to start
Message-ID:  <200603190416.k2J4GfHi000822@pbx.voip.gothic.net.au>
Resent-Message-ID: <200603190420.k2J4K7sE045557@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603190416.k2J4GfHi000822>