Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340185 - net-misc/asterisk-1.6.2.13-r1 does not shut down
Summary: net-misc/asterisk-1.6.2.13-r1 does not shut down
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-08 18:45 UTC by Brock Eastman
Modified: 2010-10-15 17:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brock Eastman 2010-10-08 18:45:33 UTC
Line in init script reads 

/usr/sbin/asterisk -r -x "stop gracefully" &>/dev/null

Should read 

/usr/sbin/asterisk -r -x "core stop gracefully" &>/dev/null

Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/asterisk start
2. /etc/init.d/asterisk stop
3.

Actual Results:  
init script pauses, asterisk is not stopped 

Expected Results:  
asterisk should stop
Comment 1 kfm 2010-10-15 16:51:13 UTC
Just to add that "stop gracefully" is correct for asterisk-1.4 (and possibly 1.2), but not asterisk-1.6 onwards. It may have crept in as a result of the init script reworking from an earlier bug.
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2010-10-15 17:14:22 UTC
chainsaw@amalthea /cvs/gentoo-x86/net-misc/asterisk/files/1.6.2 $ grep gracefully asterisk.initd*
asterisk.initd:	ebegin "Stopping asterisk PBX gracefully"
asterisk.initd:	/usr/sbin/asterisk -r -x "core stop gracefully" &>/dev/null
asterisk.initd2:	ebegin "Stopping asterisk PBX gracefully"
asterisk.initd2:	/usr/sbin/asterisk -r -x "core stop gracefully" &>/dev/null

The only conclusion I can come to is that you refused an update using etc-update. 1.6.2.13-r1 would have used initd2 but even the old initd is correct...
Comment 3 Brock Eastman 2010-10-15 17:55:17 UTC
It is a new install, and is the same on multiple machines. I added the following to my package.keywords:


=net-misc/asterisk-1.6.2.13-r1
=net-libs/libpri-1.4.11.4
=net-misc/dahdi-2.3.0.1
=net-misc/dahdi-tools-2.3.0
=net-misc/asterisk-core-sounds-1.4.19
=net-misc/asterisk-extra-sounds-1.4.11
=net-misc/asterisk-moh-opsound-2.03

and the following to my make.conf

CFLAGS="-O2 -march=core2 -msse4 -mcx16 -pipe"
CXXFLAGS="-O2 -march=core2 -msse4 -mcx16 -pipe"
CHOST="x86_64-pc-linux-gnu"
USE="mmx sse sse2 odbc dahdi mssql freetds"
MAKEOPTS="-j1"

and did an emerge asterisk