"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cf-monitord/cf-monitord.c" between
cfengine-3.15.3.tar.gz and cfengine-3.15.4.tar.gz

About: CFEngine is a configuration management system for configuring and maintaining Unix-like computers (using an own high level policy language). Community version.

cf-monitord.c  (cfengine-3.15.3):cf-monitord.c  (cfengine-3.15.4)
skipping to change at line 41 skipping to change at line 41
#include <vars.h> #include <vars.h>
#include <signals.h> #include <signals.h>
#include <scope.h> #include <scope.h>
#include <known_dirs.h> #include <known_dirs.h>
#include <man.h> #include <man.h>
#include <bootstrap.h> #include <bootstrap.h>
#include <timeout.h> #include <timeout.h>
#include <time_classes.h> #include <time_classes.h>
#include <loading.h> #include <loading.h>
#include <cleanup.h> #include <cleanup.h>
#include <file_lib.h> /* FILE_SEPARATOR */
typedef enum typedef enum
{ {
MONITOR_CONTROL_FORGET_RATE, MONITOR_CONTROL_FORGET_RATE,
MONITOR_CONTROL_MONITOR_FACILITY, MONITOR_CONTROL_MONITOR_FACILITY,
MONITOR_CONTROL_HISTOGRAMS, MONITOR_CONTROL_HISTOGRAMS,
MONITOR_CONTROL_TCP_DUMP, MONITOR_CONTROL_TCP_DUMP,
MONITOR_CONTROL_NONE MONITOR_CONTROL_NONE
} MonitorControl; } MonitorControl;
skipping to change at line 123 skipping to change at line 124
}; };
/*****************************************************************************/ /*****************************************************************************/
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
GenericAgentConfig *config = CheckOpts(argc, argv); GenericAgentConfig *config = CheckOpts(argc, argv);
EvalContext *ctx = EvalContextNew(); EvalContext *ctx = EvalContextNew();
GenericAgentConfigApply(ctx, config); GenericAgentConfigApply(ctx, config);
GenericAgentDiscoverContext(ctx, config); const char *program_invocation_name = argv[0];
const char *last_dir_sep = strrchr(program_invocation_name, FILE_SEPARATOR);
const char *program_name = (last_dir_sep != NULL ? last_dir_sep + 1 : progra
m_invocation_name);
GenericAgentDiscoverContext(ctx, config, program_name);
Policy *policy = LoadPolicy(ctx, config); Policy *policy = LoadPolicy(ctx, config);
GenericAgentPostLoadInit(ctx); GenericAgentPostLoadInit(ctx);
ThisAgentInit(ctx); ThisAgentInit(ctx);
KeepPromises(ctx, policy); KeepPromises(ctx, policy);
MonitorStartServer(ctx, policy); MonitorStartServer(ctx, policy);
PolicyDestroy(policy); PolicyDestroy(policy);
 End of changes. 2 change blocks. 
1 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)