service_coldplug() takes care of that anyway, hence drop the
unit_watch_pid() invocation entirely during serialization, it's
redundant.
if (parse_pid(value, &pid) < 0)
log_unit_debug(u, "Failed to parse main-pid value: %s", value);
- else {
- service_set_main_pid(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
+ (void) service_set_main_pid(s, pid);
} else if (streq(key, "main-pid-known")) {
int b;