I need a Client / Server script that will do the following.
Client to contact the server and query a MySql DB. Using the result of the query ie: yes/no to either enable or disable a service on the client. This needs to happen on a daily basis at a specific time. The port used to connect should be something obscure. There should be some type of authentication. Both systems will be running Centos 6. I need the ability to add services and checks as my needs grow. I need the client to fail to leave the service on if it cannot connect to the server for some unknown reason.