Merge "Removing unused flag disable_worker_services"

This commit is contained in:
Zuul 2019-11-04 13:52:12 +00:00 committed by Gerrit Code Review
commit 7661fe5680
2 changed files with 0 additions and 11 deletions

View File

@ -135,8 +135,6 @@ void daemon_exit ( void );
#define CONFIG_COMPLETE_STORAGE ((const char *)"/var/run/.storage_config_complete")
#define CONFIG_COMPLETE_FILE ((const char *)"/etc/platform/.initial_config_complete")
#define DISABLE_WORKER_SERVICES ((const char *)"/var/run/.disable_worker_services")
#define PATCHING_IN_PROG_FILE ((const char *)"/var/run/patch_installing")
#define NODE_IS_PATCHED_FILE ((const char *)"/var/run/node_is_patched")

View File

@ -855,15 +855,6 @@ int pmon_passive_handler ( process_config_type * ptr )
start_monitoring = false;
waiting_for = config_filename;
}
else if ( !strcmp (ptr->subfunction, "worker" ) )
{
if ( daemon_is_file_present ( DISABLE_WORKER_SERVICES ) == true )
{
/* Compute services are disabled - do not start monitoring */
start_monitoring = false;
waiting_for = DISABLE_WORKER_SERVICES;
}
}
mtcTimer_reset ( ptr->pt_ptr );
if ( start_monitoring == true )