/[monit]/monit/status.c
ViewVC logotype

Diff of /monit/status.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.44 by chopp, Sun Sep 14 00:03:54 2003 UTC revision 1.45 by chopp, Mon Sep 15 13:02:02 2003 UTC
# Line 79  static int remote_status(Service_T); Line 79  static int remote_status(Service_T);
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");
# Line 133  static void local_status(Service_T s) { Line 133  static void local_status(Service_T s) {
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"

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26