ports/94673: net/asterisk startup script fails to start

Sean Winn sean at gothic.net.au
Sun Mar 19 04:20:09 UTC 2006


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



More information about the freebsd-ports-bugs mailing list