Re: [asterisk-users] dahdi on systemd (CentOS 7)

2016-02-03 Thread Tzafrir Cohen
On Tue, Feb 02, 2016 at 10:07:42AM -0500, Jerry Geis wrote:
> It doesnt appear dahdi is starting up under systemd and CentOS 7.2
> 
> What should I look for?
> 
> find /etc/systemd | grep -i dahdi
> 
> find nothing.

/etc/systemd is for services installed by the system administrator.

You should have also looked under /usr/lib/systemd .

Alternatively:

  systemctl status dah # completes to:
  systemctl status dahdi.service

Which will shows me that dahdi.service was generated from
/etc/init.d/dahdi .

Or:

   systemctl list-units | grep dahdi 

> 
> How does dahdi startup under systemd ?

Right now with the same init.d script. That said, I'd like to avoid
using it. If you switch to automatic span assignment
(http://docs.tzafrir.org.il/dahdi-linux/#_span_assignments -
auto_assign_spans=0), you don't really need the DAHDI init script. In
fact, using it may become confusing, as under some circumstances the
dahdi "service" may be in the wrong state for you (and unloading modules
at poweroff is pointless).

Thus, in the spirit of the parallel boot of systemd, my general
recommendation is not to have any dahdi service, and just let spans load
and get initialized separately. This also means you no longer need to
start DAHDI before Asterisk.

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] dahdi on systemd (CentOS 7)

2016-02-02 Thread Greg Woods
On my Fedora system (which is similar to but not exactly the same as CentOS
7, YMMV), there is an /etc/rc.d/init.d/dahdi script. This causes systemd to
generate  a "dahdi" service. But there is no "dahdi.service" file. If you
do not have the init script file, you probably need to install the
dahdi-tools package. In addition you may need the dahdi-linux package which
may not be part of the distribution (it's not in Fedora because it doesn't
meet the standards for freedom that Fedora uses). I had to download the
dahdi-linux RPM separately and install it (I think ATrpms has it).

What does "systemctl status dahdi" show?

# systemctl status dahdi -l
● dahdi.service - LSB: DAHDI kernel modules
   Loaded: loaded (/etc/rc.d/init.d/dahdi)
   Active: active (exited) since Thu 2015-12-03 17:36:32 MST; 1 months 30
days ago
 Docs: man:systemd-sysv-generator(8)

Dec 03 17:36:32 worldsys.gregandeva.net systemd[1]: Starting LSB: DAHDI
kernel modules...
Dec 03 17:36:32 worldsys.gregandeva.net systemd[1]: Started LSB: DAHDI
kernel modules.


--Greg


On Tue, Feb 2, 2016 at 8:07 AM, Jerry Geis  wrote:

> It doesnt appear dahdi is starting up under systemd and CentOS 7.2
>
> What should I look for?
>
> find /etc/systemd | grep -i dahdi
>
> find nothing.
>
> How does dahdi startup under systemd ?
>
> Thanks
>
> Jerry
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] dahdi on systemd (CentOS 7)

2016-02-02 Thread Jerry Geis
It doesnt appear dahdi is starting up under systemd and CentOS 7.2

What should I look for?

find /etc/systemd | grep -i dahdi

find nothing.

How does dahdi startup under systemd ?

Thanks

Jerry
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users