core: serialize n-restarts and flush-n-restarts correctly (#6736)
This makes n-restarts and flush-n-restarts survive `systemctl daemon-[reload|rexec]`.
This commit is contained in:
committed by
Lennart Poettering
parent
a4135a742d
commit
7f92388482
+1
-1
@@ -2305,7 +2305,7 @@ static int service_serialize(Unit *u, FILE *f, FDSet *fds) {
|
||||
unit_serialize_item(u, f, "bus-name-owner", s->bus_name_owner);
|
||||
|
||||
unit_serialize_item_format(u, f, "n-restarts", "%u", s->n_restarts);
|
||||
unit_serialize_item(u, f, "n-restarts", yes_no(s->flush_n_restarts));
|
||||
unit_serialize_item(u, f, "flush-n-restarts", yes_no(s->flush_n_restarts));
|
||||
|
||||
r = unit_serialize_item_escaped(u, f, "status-text", s->status_text);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user