unit: log when we cannot add a watch on a specific PID
This commit is contained in:
parent
c1e83af84e
commit
8895eb7815
|
@ -2588,7 +2588,9 @@ static int service_deserialize_item(Unit *u, const char *key, const char *value,
|
||||||
log_unit_debug(u, "Failed to parse main-pid value: %s", value);
|
log_unit_debug(u, "Failed to parse main-pid value: %s", value);
|
||||||
else {
|
else {
|
||||||
service_set_main_pid(s, pid);
|
service_set_main_pid(s, pid);
|
||||||
unit_watch_pid(UNIT(s), pid);
|
r = unit_watch_pid(UNIT(s), pid);
|
||||||
|
if (r < 0)
|
||||||
|
log_unit_debug_errno(u, r, "Failed to watch main PID, ignoring: %m");
|
||||||
}
|
}
|
||||||
} else if (streq(key, "main-pid-known")) {
|
} else if (streq(key, "main-pid-known")) {
|
||||||
int b;
|
int b;
|
||||||
|
|
Loading…
Reference in New Issue