summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/service.c b/service.c
index 832c7b3263..c914ecace5 100644
--- a/service.c
+++ b/service.c
@@ -845,6 +845,10 @@ static int service_load_pid_file(Service *s) {
return -ESRCH;
}
+ if ((r = unit_watch_pid(UNIT(s), (pid_t) p)) < 0)
+ /* FIXME: we need to do something here */
+ return r;
+
s->main_pid = (pid_t) p;
s->main_pid_known = true;