What is needed to get DAHDI to start up correctly on CentOS 7 and systemd... I am using DAHDI-linux-complete 2.11.1 I saw mention in my search that it has been fixed after 2.11.1 but cannot find what the fix is. Thanks, Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160815/fb01f962/attachment.html>
On Mon, Aug 15, 2016 at 6:36 AM, Jerry Geis <geisj at pagestation.com> wrote:> What is needed to get DAHDI to start up correctly on CentOS 7 and > systemd... >On my Fedora 24 system, the "dahdi-tools" package contains an old-style init script /etc/rc.d/init.d/dahdi, and this seems to work just fine with systemd. I realize that CentOS != Fedora but if you have or can find an init script for an older CentOS, it might work fine on CentOS 7. I can send you the script file that I have, but of course I can't guarantee it will work on CentOS. --Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160815/5307c2f8/attachment.html>
>On my Fedora 24 system, the "dahdi-tools" package contains an old-style >init script /etc/rc.d/init.d/dahdi, and this seems to work just fine with >systemd. I realize that CentOS != Fedora but if you have or can find an >init script for an older CentOS, it might work fine on CentOS 7. I can send >you the script file that I have, but of course I can't guarantee it will >work on CentOS.seems to work. I copied the dahdi.init to /etc/rc.d/init.d/dahdi, run chkconfig dahdi on and reboot and modules are now loaded... Thanks, Jerry On Mon, Aug 15, 2016 at 8:36 AM, Jerry Geis <geisj at pagestation.com> wrote:> What is needed to get DAHDI to start up correctly on CentOS 7 and > systemd... > I am using DAHDI-linux-complete 2.11.1 > > I saw mention in my search that it has been fixed after 2.11.1 but cannot > find > what the fix is. > > Thanks, > > Jerry >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160815/56f5c217/attachment.html>
"make config" should also install the init script. On 08/15/2016 11:36 AM, Jerry Geis wrote:> >On my Fedora 24 system, the "dahdi-tools" package contains an old-style > >init script /etc/rc.d/init.d/dahdi, and this seems to work just fine with > >systemd. I realize that CentOS != Fedora but if you have or can find an > >init script for an older CentOS, it might work fine on CentOS 7. I can send > >you the script file that I have, but of course I can't guarantee it will > >work on CentOS. > > seems to work. I copied the dahdi.init to /etc/rc.d/init.d/dahdi, run > chkconfig dahdi on and reboot > and modules are now loaded... > > Thanks, > > Jerry > > > On Mon, Aug 15, 2016 at 8:36 AM, Jerry Geis <geisj at pagestation.com > <mailto:geisj at pagestation.com>> wrote: > > What is needed to get DAHDI to start up correctly on CentOS 7 and > systemd... > I am using DAHDI-linux-complete 2.11.1 > > I saw mention in my search that it has been fixed after 2.11.1 but > cannot find > what the fix is. > > Thanks, > > Jerry > > > >-- if at first you don't succeed, skydiving isn't for you
Tzafrir Cohen
2016-Aug-16 11:25 UTC
[asterisk-users] auto_assign_spans=0 [was: Re: DAHDI on CentOS 7]
On Mon, Aug 15, 2016 at 08:36:43AM -0400, Jerry Geis wrote:> What is needed to get DAHDI to start up correctly on CentOS 7 and systemd... > I am using DAHDI-linux-complete 2.11.1 > > I saw mention in my search that it has been fixed after 2.11.1 but cannot > find > what the fix is. > > Thanks, > > JerryThere are some good reasons for that. But I'll start with recommending to set auto_assign_spans=0 . All of our packages have a patch such as: --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -7405,7 +7405,7 @@ int dahdi_assign_device_spans(struct dahdi_device *ddev) return 0; } -static int auto_assign_spans = 1; +static int auto_assign_spans = 0; static const char *UNKNOWN = ""; Or simpler, applicable at runtime (module load time): echo options dahdi auto_assign_spans=0 >>/etc/dahdi/modprobe.d/dahdi.conf For starters, this means you no longer need to disableautomatic module loading for PCI cards (which was not needed for most systems anyway), and that on its own avoids most of the need for the init script. It also avoids unloading the modules at shutdown. Which is a good thing. Do that, and report what problems you have. Because I don't seem to have problems with my packages (on Centos 7 and Debian Jessie). -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com