chkconfig asterisk off does not work in Elastix 2

ntnher

Joined
Aug 23, 2010
Messages
5
Likes
0
Points
0
#1
So I am trying to turn off asterisk service at boot for my secondary server. Service will be control on/off by heartbeat. The command chkconfig asterisk off and chkconfig asterisk --del has been tried. I have no problems with httpd, mysqld, and postfix, I am able to turn these off at boot.

I also looked at the service at command prompt "setup" under System Service and there is no Asterisk. In previous version Elastix 1.6, simply "chkconfig asterisk off" and asterisk would not start at boot. Is there another service that's turning asterisk on?

This isn't good news for me. Where the service asterisk?
[root@node2 ~]# chkconfig --list
LCDd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
acpid 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
atd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
auditd 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
capi 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
crond 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
cyrus-imapd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
dahdi 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
dc_client 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
dc_server 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
dhcdbd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
dhcpd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
dhcrelay 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
drbd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
elastix-firstboot 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
elastix-updaterd 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
haldaemon 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
heartbeat 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
httpd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
hylafax 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
iaxmodem 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
ip6tables 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
iptables 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
isdn 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
kudzu 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
lcdelastix 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
lm_sensors 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
lvm2-monitor 0:eek:ff 1:eek:n 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
mailman 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
mcstrans 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
mdmonitor 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
mdmpd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
messagebus 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
multipathd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
mysqld 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
netconsole 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
netfs 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
netplugd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
network 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
nfs 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
nfslock 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
ntpd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
openfire 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
portmap 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
postfix 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
psacct 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
rawdevices 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
rdisc 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
restorecond 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
rpcgssd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
rpcidmapd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
rpcsvcgssd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
saslauthd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
snmpd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
snmptrapd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
spamassassin 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
sshd 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
syslog 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
vsftpd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
wanrouter 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
wpa_supplicant 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:ff 4:eek:ff 5:eek:ff 6:eek:ff
xfs 0:eek:ff 1:eek:ff 2:eek:n 3:eek:n 4:eek:n 5:eek:n 6:eek:ff
xinetd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:n 5:eek:n 6:eek:ff

xinetd based services:
chargen-dgram: off
chargen-stream: off
daytime-dgram: off
daytime-stream: off
discard-dgram: off
discard-stream: off
echo-dgram: off
echo-stream: off
eklogin: off
ekrb5-telnet: off
gssftp: off
klogin: off
krb5-telnet: off
kshell: off
tcpmux-server: off
tftp: on
time-dgram: off
time-stream: off
[root@node2 ~]#
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#2
check your /etc/rc.d/rc.local
 

ntnher

Joined
Aug 23, 2010
Messages
5
Likes
0
Points
0
#3
GNU nano 1.3.12 File: /etc/rc.d/rc.local

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
/usr/local/sbin/motd.sh > /etc/motd
/usr/sbin/fxotune -s
/usr/sbin/amportal start_fop


Thanks for the quick reply dicko
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#4
from bash:-

amportal


-------------FreePBX Control Script-----------------------------------------------

Usage: amportal start|stop|restart|start_fop|stop_fop|restart_fop|kill|chown

start: Starts Asterisk and Flash Operator Panel server if enabled
stop: Gracefully stops Asterisk and the FOP server
restart: Stop and Starts
start_fop: Starts FOP server and Asterisk if not running
stop_fop: Stops FOP serverg
restart_fop: Stops FOP server and Starts it and Asterisk if not running
kill: Kills Asterisk and the FOP server
chown: Sets appropriate permissions on files


you probably don't need fop, if you do that should also be controlled by heartbeat, along with postfix hylafax tftpd (xinet.d) dhcp and anything else you added to the base install. actually there are a lot of services that the stale old heartbeat/drbd scripts just don't cover.
 

ntnher

Joined
Aug 23, 2010
Messages
5
Likes
0
Points
0
#5
Thanks, that answers the question. This does make thing complicated/different from my previous setup. I'm gonna need your expertise. If I eliminate the last line "/usr/sbin/amportal start_fop" how can I get Asterisk and Flash Operator Panel on/off control to heartbeat?

Only service that need to be off during boot for is asterisk, httpd, mysqld, and postfix. I've got High Availability to work in Elastix 1.6 by using your previous post regarding DRBD, thanks. I may be wrong but is FOP a user interface for asterisk? The actually modification to Elastix are store in Asterisk, Therefore FOP does not need to be move between the primary and secondary server?
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#6
As I suggested, if you don't use FOP, comment out the line and just start and stop the asterisk service in haresources, if you do, then I suggest you plonk down 40 bucks for it's replacement FOP2, it is far more functional and has it's own init script, if you want the original FOP service, go to asternic and see how to start it "self-standing"

I further disagree with assertion about " . . the only services . . .". be very careful with services like dhcp and avahi and other broadcast based services, if you have your /tftpboot in the replicated structure, some-thing's gonna break sooner or later (unless you know what you are doing you should really only have one DHCP server running), and never mind the cached leases files.

You are not quite correct in saying that the changes are stored in "Elastix" that is in itself many services in a wrapper. In 2.0 there are even "helper" functions that run as services that are in my opinion "not so helpful or serviceable" in a HA situation, they just get noisy and complain a lot.

If you use Aastra XML then a similar race condition will apply on their php services. If you use hylafax and don't replicate it's state then you loose state on a "switch", etc. etc. etc.

There is no one answer, it depends what you use and on your network setup and how you care to preserve the "state" of your services, do you want to replicate your logs or not for example? are all the servers visible on the network when in standby, if so , should they be? IMHO probably not. . The list goes on.

dicko
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,901
Messages
130,885
Members
17,561
Latest member
marouen
Top