Created attachment 330920 [details, diff] Create /var/run/asterisk if it doesn't exists With the recent change in /var/run (symlink to the tmpfs /run), the /var/run/asterisk folder doesn't exist anymore. As other packages, asterisk should remove the 'keepdir /var/run/asterisk' from the ebuild and add a checkpath in the init script. Example of current execution: /etc/init.d/asterisk start * Starting asterisk PBX ... * Core dump size : unlimited * Core dump location : /var/lib/asterisk/coredump * Max open filedescriptors : 4096 find: `/var/run/asterisk': No such file or directory * Starting asterisk as : asterisk cat: /var/run/asterisk/asterisk.pid: No such file or directory [ !! ] * ERROR: asterisk failed to start I included a simple patch that fixes the ebuild
This applies to all three branches; I will apply this on the next update. Unless of course there are plans to stabilise the openrc release that breaks this, in which case I will have to book an emergency stable on the 1.8 branch?
Hi, Please drop the 2>/dev/null - it might hide other errors that we do want to know about. Instead just move the checkpath to just before the "for element in `find /var/{log,run}/asterisk`; do" line.
Created attachment 330954 [details, diff] Create /var/{log,run}/asterisk if they don't exist You are perfectly right. I miss-read the find (because of the recursive chown/chmod inside the loop).
Tony, you've got my OK on that patch - for what it's worth :).
Thank you gentlemen.
+*asterisk-11.0.1-r2 (01 Dec 2012) +*asterisk-10.10.0-r2 (01 Dec 2012) +*asterisk-1.8.18.0-r2 (01 Dec 2012) + + 01 Dec 2012; Tony Vroon <chainsaw@gentoo.org> +files/1.8.0/asterisk.initd4, + -asterisk-1.8.18.0-r1.ebuild, +asterisk-1.8.18.0-r2.ebuild, + -asterisk-10.10.0-r1.ebuild, +asterisk-10.10.0-r2.ebuild, + -asterisk-11.0.1-r1.ebuild, +asterisk-11.0.1-r2.ebuild: + OpenRC has seen fit to overhaul /var/run; as identified by Vincent Brillault + in bug #445182 our init scripts require immediate adjustments. With thanks to + Jaco Kroon for review. Updating all three branches and removing all + non-stable now unusable ebuilds. Arches, please test & mark stable =net-misc/asterisk-1.8.18.0-r2 Target keywords: amd64 x86 Repeated start/stop (3 cycles) on default config files will suffice if you do not have the necessary hardware and/or accounts in place. This is an emergency stable as the daemon becomes unusable and said new OpenRC is stable.
amd64 stable
I just though about something: shouldn't the 'keepdir /var/run/asterisk' be removed from the ebuilds as stated in bug 332633 ? In that case, the pkg_config function should also be altered (remove 'run' in the loop).
Changes are live, this is too late to have a change of heart. Sorry.
x86 stable. Last arch, closing