{
if ( is_online == true )
{
+ // TODO: Get the actual IP of this host (through DNS or WEBCHECK_IP). Perhaps new Class which can handle both.
+
// update all configured services
updater->update_services();
}
else
{
+ // We are in offline mode, do nothing, expect printing "offline mode".
updater->get_logger()->print_offline_mode();
}
+ // Snore, snore... don't hug the cpu if we are in daemon_mode.
if ( updater->get_config()->get_daemon_mode() == 1 )
sleep(5);
}while ( updater->get_config()->get_daemon_mode() == 1 );
- // serialize services to save their actual status
+ // Serialize services to save their actual state.
if ( updater->get_config()->serialize_services() != 0 )
return -1;