From: Lennart Poettering Date: Thu, 8 Apr 2010 01:48:27 +0000 (+0200) Subject: service/socket: show main/control pids in dump X-Git-Tag: 0.git+20100605+dfd8ee-1~199 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70123e68a04016efca9266fc22dd05a0a7fd2d51;p=systemd service/socket: show main/control pids in dump --- diff --git a/service.c b/service.c index 74d03dbe..3d840cbd 100644 --- a/service.c +++ b/service.c @@ -768,6 +768,16 @@ static void service_dump(Unit *u, FILE *f, const char *prefix) { prefix, kill_mode_to_string(s->kill_mode), prefix, service_type_to_string(s->type)); + if (s->control_pid > 0) + fprintf(f, + "%sControl PID: %llu\n", + prefix, (unsigned long long) s->control_pid); + + if (s->main_pid > 0) + fprintf(f, + "%sMain PID: %llu\n", + prefix, (unsigned long long) s->main_pid); + if (s->pid_file) fprintf(f, "%sPIDFile: %s\n", diff --git a/socket.c b/socket.c index 617a49a0..51bfc9a8 100644 --- a/socket.c +++ b/socket.c @@ -196,6 +196,11 @@ static void socket_dump(Unit *u, FILE *f, const char *prefix) { prefix, s->socket_mode, prefix, s->directory_mode); + if (s->control_pid > 0) + fprintf(f, + "%sControl PID: %llu\n", + prefix, (unsigned long long) s->control_pid); + if (s->bind_to_device) fprintf(f, "%sBindToDevice: %s\n",