79 |
void status() { |
void status() { |
80 |
|
|
81 |
Service_T s; |
Service_T s; |
82 |
char *uptime= get_process_uptime(Run.pidfile); |
char *uptime= get_process_uptime(Run.pidfile, " "); |
83 |
|
|
84 |
if(IS(uptime, "")) { |
if(IS(uptime, "")) { |
85 |
fprintf(stdout, "The monit daemon is not running\n"); |
fprintf(stdout, "The monit daemon is not running\n"); |
133 |
case TYPE_PROCESS: |
case TYPE_PROCESS: |
134 |
if((pid= is_process_running(s))) { |
if((pid= is_process_running(s))) { |
135 |
|
|
136 |
char *uptime= get_process_uptime(s->path); |
char *uptime= get_process_uptime(s->path, " "); |
137 |
|
|
138 |
fprintf(stdout, |
fprintf(stdout, |
139 |
"Process '%s' is running with pid [%d]\n\t" |
"Process '%s' is running with pid [%d]\n\t" |