Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Asterisk starts but claims it hasn't!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
HuskyDog
Tux's lil' helper
Tux's lil' helper


Joined: 20 Feb 2003
Posts: 78
Location: Wiltshire, UK

PostPosted: Mon Jul 15, 2024 12:02 pm    Post subject: Asterisk starts but claims it hasn't! Reply with quote

Code:
# rc-service asterisk start
 * Starting asterisk PBX ...
 *   Max open filedescriptors  : 4096
 *   Starting asterisk as      : asterisk:asterisk (+supplementaries)
 *   Wrapper options           : --syslog --rundir /run/asterisk --restartdelay 5 --maxfd 4096
 *   Asterisk options          : -C /etc/asterisk/asterisk.conf -f -U asterisk
 *   Signalling asterisk wrapper script to terminate ...                                                          [ !! ]
 * ERROR: asterisk failed to start
# ps ax | grep asterisk
22145 pts/1    S      0:00 /bin/sh /usr/sbin/asterisk_wrapper --syslog --rundir /run/asterisk --restartdelay 5 --maxfd 4096 -- -C /etc/asterisk/asterisk.conf -f -U asterisk
22158 pts/1    S      0:00 logger -t asterisk_wrapper --id=22145
22164 pts/1    Sl     0:00 /usr/sbin/asterisk -C /etc/asterisk/asterisk.conf -f -U asterisk
22231 pts/1    S+     0:00 grep --color=auto asterisk


As you can see, I get an ERROR when the service starts, but it actually appears to be running and when I test it by making some phone calls it seems to be working fine.

This isn't the end of the world, but it means that I can't then stop the service with 'rc-service asterisk stop' as I get '* WARNING: asterisk is already stopped'
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1013
Location: Somewhere in Denmark

PostPosted: Mon Jul 15, 2024 5:24 pm    Post subject: Reply with quote

clamd has something similar if /etc/init.d/clamd is not in sync with clamd.conf - pid-file placed in one spot - rc-service/rc-status looking for the pid-file elsewhere.
It might be the same here?
(try looking in the init-file and try looking where the .pid.file is placed)

For clamd it's showing crashed though - so might not be the same issue, no asteriks-logs nor anything in rc.log? /var/log/messages?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum