536 |
printf(" %-20s = %s\n", "Group", is_str_defined(s->group)); |
printf(" %-20s = %s\n", "Group", is_str_defined(s->group)); |
537 |
if(s->type == TYPE_PROCESS) |
if(s->type == TYPE_PROCESS) |
538 |
printf(" %-20s = %s\n", "Pid file", s->path); |
printf(" %-20s = %s\n", "Pid file", s->path); |
539 |
else |
else if(s->type != TYPE_REMOTE) |
540 |
printf(" %-20s = %s\n", "Path", s->path); |
printf(" %-20s = %s\n", "Path", s->path); |
541 |
printf(" %-20s = %s\n", "Monitoring mode", modenames[s->mode]); |
printf(" %-20s = %s\n", "Monitoring mode", modenames[s->mode]); |
542 |
if(s->start) { |
if(s->start) { |
896 |
|
|
897 |
char D[STRLEN]; |
char D[STRLEN]; |
898 |
struct tm *tm_now; |
struct tm *tm_now; |
899 |
time_t now= (date && date>0)?*date:time(NULL); |
time_t now= (date && *date>0)?*date:time(NULL); |
900 |
|
|
901 |
tm_now= localtime(&now); |
tm_now= localtime(&now); |
902 |
|
|