diff options
-rw-r--r-- | service.c | 10 | ||||
-rw-r--r-- | socket.c | 5 |
2 files changed, 15 insertions, 0 deletions
@@ -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", @@ -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", |