View Single Post
  #6  
Old 6th June 2008, 00:05
petero petero is offline
Junior Member
 
Join Date: Jun 2008
Location: Poland
Posts: 4
Thanks: 0
Thanked 2 Times in 2 Posts
Default

>Stopping ldirectord Error [] reading file /etc/ha.d/ldirectord.cf at line 8: >Unknown command service=mysql
This error is due to formating, it took me some time to figure it out.
The serivce= mysql is probably connected to /etc/services which is correct.
If you have libmysqlclient15 or 14 installed, fixing right formating will do the trick like here:

---/etc/heartbeat/ldirectord.cf
# Global Directives
checktimeout=10
checkinterval=2
autoreload=no
logfile="local0"
quiescent=yes
#after virtual=... make TABS (or double spaces) in every line
virtual = 10.0.2.10:3306
  service = mysql
  real = 10.0.1.11:3306 gate
 real = 10.0.1.12:3306 gate
 checktype = negotiate
  login = "ldirector"
  passwd = "ldirector"
  database = "ldirectordb"
  request = "SELECT * FROM connectioncheck"
  scheduler = wrr
-------------------------end of file---
Hope this helps.

Peter
Reply With Quote