Is there a variable where to check if I am a slave or if I am master server?
Right now, I am checking if $conf['dbmaster_host'] is empty or not to know if I am a slave or master... this is not the best way to check it...
(as I could see, in master server that variable is empty, if it is slave, it has the hostname of the master server...)
I think that there is a better way to check this... more simple I think... could you help me? I did'nt have enough time to check all ispconfig structure and variables...
My approach is:
If I am a slave, I have to save locally timestamp of last read line in ftptraffic log and next save traffic in ftp_traffic in master server.
If I am master, I have to save both locally, timestamp and ftp traffic.
|