if [ $NETDATA_CONFIG_DEBUG -eq 1 ]
then
ulimit -c unlimited
- make install debug=1 # this installs in the current directory
+ make install debug=1 || exit 1 # this installs in the current directory
debug_opts="-df 0xfffffadf"
else
- make install # this installs in the current directory
+ make install || exit 1 # this installs in the current directory
debug_opts="-df 0x00000000"
fi
snprintf(pidfile, FILENAME_MAX, "%s/netdata.pid", rundir);
- if(mkdir(rundir, 0775) != 0)
- fprintf(stderr, "Cannot create directory '%s' (%s).", rundir, strerror(errno));
+ if(mkdir(rundir, 0775) != 0) {
+ if(errno != EEXIST) fprintf(stderr, "Cannot create directory '%s' (%s).", rundir, strerror(errno));
+ }
}
int become_user(const char *username)
if(c == 0) continue;
if(!all_files[c].count) {
- if(debug) fprintf(stderr, "apps.plugin: >> eximining slot %d.\n", c);
+ if(debug) fprintf(stderr, "apps.plugin: >> Examining slot %d.\n", c);
if(all_files[c].magic == 0x0BADCAFE && all_files[c].name && file_descriptor_find(all_files[c].name, all_files[c].hash))
error("apps.plugin: fd on position %d is not cleared properly. It still has %s in it.\n", c, all_files[c].name);
{
// debug_flags = D_PROCFILE;
+ info("apps.plugin: starting...");
+
unsigned long started_t = time(NULL), current_t;
Hertz = get_hertz();
pid_max = get_pid_max();
, st->priority
, st->enabled
, st->units
- , st->id, options?options:""
+ , st->name, options?options:""
, rrdset_type_name(st->chart_type)
, st->counter
, st->entries