Please see the attached patch that will allow /etc/init.d/asterisk to check for permissions before it starts. If the permissions are wrong it will warn and attempt to fix them rather than just failing without error. Reproducible: Always
Created attachment 211173 [details, diff] patch for asterisk.initd
+*asterisk-1.6.1.12 (19 Dec 2009) + + 19 Dec 2009; <chainsaw@gentoo.org> + +files/1.6.1/asterisk-1.6.1.12-longer-sip-cid.patch, + +files/1.6.1/asterisk.initd2, +asterisk-1.6.1.12.ebuild, + +files/1.6.1/asterisk-1.6.1.12-parallel-make.patch: + Version bump. Improved permission handling in ebuild & initscript by + Patryk Rzadzinski, closes bugs #294601 & #296087. Set ASTLDFLAGS + environment variable to enforce LDFLAGS respect. Additional parallel make + fixes.