From: Evgeny Vereshchagin Date: Mon, 4 Sep 2017 13:36:01 +0000 (+0300) Subject: core: serialize n-restarts and flush-n-restarts correctly (#6736) X-Git-Tag: v235~171 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f92388482caeaef13b41ef1008126d24b691947;p=platform%2Fupstream%2Fsystemd.git core: serialize n-restarts and flush-n-restarts correctly (#6736) This makes n-restarts and flush-n-restarts survive `systemctl daemon-[reload|rexec]`. --- diff --git a/src/core/service.c b/src/core/service.c index 004e2a7..c9a7222 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -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)