--- systemd-204-patched/src/core/service.c.orig 2013-09-26 23:27:25.765405876 +1000 +++ systemd-204-patched/src/core/service.c 2013-09-26 23:41:49.011428993 +1000 @@ -2642,6 +2642,9 @@ static int service_serialize(Unit *u, FI if (s->exec_context.var_tmp_dir) unit_serialize_item(u, f, "var-tmp-dir", s->exec_context.var_tmp_dir); + if (s->forbid_restart) + unit_serialize_item(u, f, "forbid_restart", yes_no(s->forbid_restart)); + return 0; } @@ -2776,7 +2779,15 @@ static int service_deserialize_item(Unit return log_oom(); s->exec_context.var_tmp_dir = t; - } else + } else if (streq(key, "forbid_restart")) { + int b; + + b = parse_boolean(value); + if (b < 0) + log_debug_unit(u->id, "Failed to parse forbid_restart value %s", value); + else + s->forbid_restart = b; + } else log_debug_unit(u->id, "Unknown serialization key '%s'", key); return 0;