summaryrefslogtreecommitdiff
path: root/service.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-08 03:48:27 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-08 03:48:27 +0200
commit70123e68a04016efca9266fc22dd05a0a7fd2d51 (patch)
treea646294459718e276622df7410cdbf010ebf6e7d /service.c
parent7072ced8274274cd1b0fa085dd4118462e03884e (diff)
service/socket: show main/control pids in dump
Diffstat (limited to 'service.c')
-rw-r--r--service.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/service.c b/service.c
index 74d03dbe1d..3d840cbd92 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",