]> err.no Git - systemd/commitdiff
service/socket: show main/control pids in dump
authorLennart Poettering <lennart@poettering.net>
Thu, 8 Apr 2010 01:48:27 +0000 (03:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Apr 2010 01:48:27 +0000 (03:48 +0200)
service.c
socket.c

index 74d03dbe1d4c26693b7db0ddc4049b08386e7cc1..3d840cbd92f9c3c8a1cfa53d9e8de01b2f41edb2 100644 (file)
--- 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",
index 617a49a07509abe2eaf6310bb164d420adc129a3..51bfc9a88d4c6c50be0a2a1bbbd68333d3c2515e 100644 (file)
--- 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",