Asterisk seems to take some time to die once you have done "/etc/init.d/asterisk stop" - this causes the restart script to usually error I have "borrowed" the logic from the squid script which waits for the process to fully die before returning an error code. This means that the script now restarts correctly under normal usage Can someone please pop this in the main asterisk ebuild Reproducible: Always Steps to Reproduce: /etc/init.d/asterisk restart * Stopping asterisk PBX ... [ ok ] * Starting asterisk PBX (as asterisk:asterisk) ... /usr/sbin/asterisk already running. [ !! ]
Created attachment 71856 [details] updated start/stop script Patch should be obvious. I only changed the "STOP" function
i've seen asterisk hang on shutdown due to mpg123 spinning out of control, i often have to do a kill -9 on mpg123 for asterisk to stop correctly...
can you please make a patch (unified diff) or the current init script? It looks not easy to merge here diff -u old new > patch
fixed in 1.2.13-r1