]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Display daemon pid in .apiV2 status output
authorEric Bollengier <eric@baculasystems.com>
Sun, 27 Jan 2019 16:17:51 +0000 (17:17 +0100)
committerKern Sibbald <kern@sibbald.com>
Sun, 27 Jan 2019 16:17:51 +0000 (17:17 +0100)
bacula/src/dird/ua_status.c
bacula/src/filed/status.c
bacula/src/stored/status.c

index b11461e289edd4ee0db88af8c2cc40cfc6c96ea5..27c231a211354cdd84805400e3538b58527f4032 100644 (file)
@@ -436,6 +436,7 @@ static void api_list_dir_status_header(UAContext *ua)
       OT_STRING, "uname",       HOST_OS " " DISTNAME " " DISTVER,
       OT_UTIME,  "started",     daemon_start_time,
       OT_UTIME,  "reloaded",    last_reload_time,
+      OT_INT64,  "pid",         (int64_t)getpid(),
       OT_INT,    "jobs_run",    num_jobs_run,
       OT_INT,    "jobs_running",job_count(),
       OT_INT,    "nclients",    ((rblist *)res_head[R_CLIENT-r_first]->res_list)->size(),
index 504e5a723be1b3c6478e4803c2f1fb1f3a9cf7ad..dae07f5027cd4455dcca24405f2617f81e4767b1 100644 (file)
@@ -89,6 +89,7 @@ static void api_list_status_header(STATUS_PKT *sp)
       OT_STRING, "version",     VERSION " (" BDATE ")",
       OT_STRING, "uname",       HOST_OS " " DISTNAME " " DISTVER,
       OT_UTIME,  "started",     daemon_start_time,
+      OT_INT64,  "pid",         (int64_t)getpid(),
       OT_INT,    "jobs_run",    num_jobs_run,
       OT_INT,    "jobs_running",job_count(),
       OT_STRING, "winver",      buf,
index f03aa44836cb8fc81d20e9db8f891e8bda92ce2d..f4221cbcda4f3557ffc2ada024f72884f8044136 100644 (file)
@@ -502,6 +502,7 @@ static void api_list_sd_status_header(STATUS_PKT *sp)
       OT_STRING, "version",     VERSION " (" BDATE ")",
       OT_STRING, "uname",       HOST_OS " " DISTNAME " " DISTVER,
       OT_UTIME,  "started",     daemon_start_time,
+      OT_INT64,  "pid",         (int64_t)getpid(),
       OT_INT,    "jobs_run",    num_jobs_run,
       OT_INT,    "jobs_running",job_count(),
       OT_INT,    "ndevices",    ((rblist *)res_head[R_DEVICE-r_first]->res_list)->size(),