LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-01-2018, 05:33 PM   #1
boozah
LQ Newbie
 
Registered: Nov 2006
Posts: 18

Rep: Reputation: 0
Un derstanding fauilure to srtart a module


In the output from: systemctl status dahdi.service

I see these lines:
Loaded: loaded (/etc/rc.d/init.d/dahdi; bad; vendor preset: disabled)
Active: active (exited) since Fri 2018-06-01 15:58:59 UTC; 1h 49min ago

Can someone tell me what these lines mean?

My guess is that dahdi started and then something went wrong. I just don't know what or why.
 
Old 06-01-2018, 05:58 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19 MATE
Posts: 6,421
Blog Entries: 2

Rep: Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107
Given the dearth of information you have provided on what this service is and does, and which distro you are running, all I can say is it looks to me as if the service started, did what it had to do and then exited. It didn't know that it had to keep running and act as a daemon, if that's what you're expecting it to do. See the final link for a possible workaround.

https://askubuntu.com/questions/8360...s-includes-bad

https://unix.stackexchange.com/quest...custom-service

http://lists.digium.com/pipermail/as...ry/288334.html
 
Old 06-01-2018, 06:10 PM   #3
boozah
LQ Newbie
 
Registered: Nov 2006
Posts: 18

Original Poster
Rep: Reputation: 0
The distro is CentOS 7.5
DAHDI (dahdi.service) is the “Digium Asterisk Hardware Device Interface".
It provides hardware device services to the Asterisk module. I was expecting it to stay loaded and running once it was started. The fact that it is failing somehow is causing problems for Asterisk. I need to get Asterisk running properly, o that I can run VIVCIdial on top of Asterisk and provide automated phone message services to my client's customers.

"State active (exited) means that systemd has successfully run the commands but that it does not know there is a daemon to monitor."

It seems that the daemon isn't running but should be - but then I'm kind of a newbie here.

I hope this helps.
 
Old 06-01-2018, 06:14 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19 MATE
Posts: 6,421
Blog Entries: 2

Rep: Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107
Quote:
Originally Posted by boozah View Post
The distro is CentOS 7.5
DAHDI (dahdi.service) is the “Digium Asterisk Hardware Device Interface".
It provides hardware device services to the Asterisk module. I was expecting it to stay loaded and running once it was started. The fact that it is failing somehow is causing problems for Asterisk. I need to get Asterisk running properly, o that I can run VIVCIdial on top of Asterisk and provide automated phone message services to my client's customers.

"State active (exited) means that systemd has successfully run the commands but that it does not know there is a daemon to monitor."

It seems that the daemon isn't running but should be - but then I'm kind of a newbie here.

I hope this helps.
Did you have a look at that third link? It suggests installing two other packages.
 
Old 06-01-2018, 08:01 PM   #5
boozah
LQ Newbie
 
Registered: Nov 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Yes I did. But I had installed 'dahdi-linux-complete-2.11.1+2.11.1', which includes the contents of those two packages - as well as the base dahdi installation.
 
Old 06-01-2018, 08:43 PM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19 MATE
Posts: 6,421
Blog Entries: 2

Rep: Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107
Quote:
Originally Posted by boozah View Post
Yes I did. But I had installed 'dahdi-linux-complete-2.11.1+2.11.1', which includes the contents of those two packages - as well as the base dahdi installation.
Ok. Have you tried asking here?: https://community.asterisk.org/
 
Old 06-01-2018, 08:48 PM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19 MATE
Posts: 6,421
Blog Entries: 2

Rep: Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107Reputation: 2107
Also, which instructions did you follow when installing everything?

Here is an example:

https://computingforgeeks.com/how-to...by-step-guide/
 
Old 06-01-2018, 09:22 PM   #8
boozah
LQ Newbie
 
Registered: Nov 2006
Posts: 18

Original Poster
Rep: Reputation: 0
I used the instructions here: https://wiki.asterisk.org/wiki/displ...lling+Asterisk

Also, there was some help in the SCRATCH_INSTALL.txt file from the package here:

http://www.vicidial.org/vicidial.php

despite the versions of many packages here being outdated.

The ultimate goal is to get VICIdial running. As of a few minutes ago, I get an error loading the homepage of the /var/www/html folder on the server. I don't know what broke that but apache is clearly still running.

systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2018-05-31 19:37:26 UTC; 1 day 5h ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 2496 (httpd)
Status: "Total requests: 9; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─2496 /usr/sbin/httpd -DFOREGROUND
├─2497 /usr/sbin/httpd -DFOREGROUND
├─2498 /usr/sbin/httpd -DFOREGROUND
├─2499 /usr/sbin/httpd -DFOREGROUND
├─2500 /usr/sbin/httpd -DFOREGROUND
├─2501 /usr/sbin/httpd -DFOREGROUND
├─2502 /usr/sbin/httpd -DFOREGROUND
└─2503 /usr/sbin/httpd -DFOREGROUND

Restarting it didn't fix the failure to connect...

This site can’t be reached
157.250.xxx.xxx took too long to respond.

Ugh.
 
Old 06-02-2018, 10:56 AM   #9
boozah
LQ Newbie
 
Registered: Nov 2006
Posts: 18

Original Poster
Rep: Reputation: 0
I rebooted the server and that fixed the connectivity problem. I still can't connect to /agc/vicidial.php
 
Old 06-02-2018, 12:58 PM   #10
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000
Is there a file /var/www/html/index.html? Perhaps look at the permissions.

Last edited by AwesomeMachine; 06-02-2018 at 12:59 PM.
 
Old 06-03-2018, 10:43 AM   #11
boozah
LQ Newbie
 
Registered: Nov 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Yes there is. I created that file to verify that the apache server was working properly. When I type {IP_ADDRESS} in the address bar of my browser (Chrome), I see that HTML page.

Its permissions are 644, owner and group are root.

For /var/www/html/agc, owner and group are root and file permissions are currently 755.
For /var/www/html/agc/vicidial, owner and group are root and file permissions are currently 755.
For /var/www/html/agc/vicidial.php, owner and group are both root and file permissions are currently 755.

Last edited by boozah; 06-03-2018 at 10:53 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I know whether a module is a loadable module or compiled-in module? hahacc Linux - Kernel 3 11-21-2014 02:43 AM
[SOLVED] insmod inserts the module. but lsmod does not list it. using Plx load module utility. cpemmaraju Linux - Kernel 2 05-15-2014 12:58 AM
Compile and load kernel module automatically after boot? (Intel NIC module) touser Linux - Newbie 3 08-29-2009 09:45 PM
kcmshell module, Background&Screensaver Module can't be launch (but works @LookNFeeL) bobbyjoe Linux - Software 0 01-08-2005 05:48 AM
'Invalid module format' loading simple module on Suse Linux Professional 9.1 rocketdude Linux - Distributions 3 07-28-2004 12:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration