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