Re: Building/loading dahdi from asterisk

2015-07-19 Thread Alex
HI,

On Sun, Jul 19, 2015 at 11:04 AM, Bruno Wolff III br...@wolff.to wrote:
 On Sat, Jul 18, 2015 at 19:21:37 -0400,
  Alex mysqlstud...@gmail.com wrote:


 I'm really stuck with getting asterisk started. I've built and install
 the dahdi asterisk modules, but they don't load automatically on boot.

 The asterisk-dahdi package includes /etc/rc.d/init.d/dahdi which runs
 /bin/systemctl start dahdi.service but it fails to load the modules.

 I have been seeing this for a while, but haven't figured out what change
 caused it.

I figured it out, but it's really weird.

The file /etc/init.d/functions contains a bunch of shell script
functions, of course. However, it runs one of those functions called
strstr() and checks to see if /proc/cmdline contains rc.debug. If it
doesn't, it returns 1, and apparently the dahdi script doesn't
anticipate that, and just exits.

If someone can confirm my logic is correct, I'll open a bug report. In
the meantime, commenting out that last line of /etc/init.d/functions,
where strstr() is called, fixes it.

#strstr $(cat /proc/cmdline) rc.debug  set -x

Thanks for any ideas.
Alex
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Building/loading dahdi from asterisk

2015-07-19 Thread Bruno Wolff III

On Sun, Jul 19, 2015 at 21:21:42 -0400,
 Alex mysqlstud...@gmail.com wrote:


I figured it out, but it's really weird.

The file /etc/init.d/functions contains a bunch of shell script
functions, of course. However, it runs one of those functions called
strstr() and checks to see if /proc/cmdline contains rc.debug. If it
doesn't, it returns 1, and apparently the dahdi script doesn't
anticipate that, and just exits.

If someone can confirm my logic is correct, I'll open a bug report. In
the meantime, commenting out that last line of /etc/init.d/functions,
where strstr() is called, fixes it.

#strstr $(cat /proc/cmdline) rc.debug  set -x

Thanks for any ideas.


That's helpful, and I recommend going ahead with the bug report.
Really the init scripts should get converted to systemd, but in the short 
run it would be nice to get it working again.


Thanks for looking into this.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Building/loading dahdi from asterisk

2015-07-19 Thread Bruno Wolff III

On Sat, Jul 18, 2015 at 19:21:37 -0400,
 Alex mysqlstud...@gmail.com wrote:


I'm really stuck with getting asterisk started. I've built and install
the dahdi asterisk modules, but they don't load automatically on boot.

The asterisk-dahdi package includes /etc/rc.d/init.d/dahdi which runs
/bin/systemctl start dahdi.service but it fails to load the modules.


I have been seeing this for a while, but haven't figured out what change 
caused it.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Building/loading dahdi from asterisk

2015-07-18 Thread Alex
Hi,

I'm really stuck with getting asterisk started. I've built and install
the dahdi asterisk modules, but they don't load automatically on boot.

The asterisk-dahdi package includes /etc/rc.d/init.d/dahdi which runs
/bin/systemctl start dahdi.service but it fails to load the modules.

My question is, how do I troubleshoot this? How do I get more
information to find out why it isn't automatically load the modules?

If I just run modprobe dahdi manually, it loads the modules.

I've looked through the logs, and it just says Started LSB: DAHDI
kernel modules. without any further information.

Any ideas greatly appreciated.
Thanks,
Alex
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org