ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
9fc0f6
From e409d591e0d9ae65d351cf32ae7cb79def50f009 Mon Sep 17 00:00:00 2001
9fc0f6
From: Lennart Poettering <lennart@poettering.net>
9fc0f6
Date: Wed, 9 Oct 2013 00:13:55 +0200
9fc0f6
Subject: [PATCH] core: unify the way we denote serialization attributes
9fc0f6
9fc0f6
---
9fc0f6
 src/core/service.c | 6 +++---
9fc0f6
 1 file changed, 3 insertions(+), 3 deletions(-)
9fc0f6
9fc0f6
diff --git a/src/core/service.c b/src/core/service.c
9fc0f6
index 98b1599..96ed2d3 100644
9fc0f6
--- a/src/core/service.c
9fc0f6
+++ b/src/core/service.c
9fc0f6
@@ -2652,7 +2652,7 @@ static int service_serialize(Unit *u, FILE *f, FDSet *fds) {
9fc0f6
                 unit_serialize_item(u, f, "var-tmp-dir", s->exec_context.var_tmp_dir);
9fc0f6
 
9fc0f6
         if (s->forbid_restart)
9fc0f6
-                unit_serialize_item(u, f, "forbid_restart", yes_no(s->forbid_restart));
9fc0f6
+                unit_serialize_item(u, f, "forbid-restart", yes_no(s->forbid_restart));
9fc0f6
 
9fc0f6
         return 0;
9fc0f6
 }
9fc0f6
@@ -2790,12 +2790,12 @@ static int service_deserialize_item(Unit *u, const char *key, const char *value,
9fc0f6
                         return log_oom();
9fc0f6
 
9fc0f6
                 s->exec_context.var_tmp_dir = t;
9fc0f6
-        } else if (streq(key, "forbid_restart")) {
9fc0f6
+        } else if (streq(key, "forbid-restart")) {
9fc0f6
                 int b;
9fc0f6
 
9fc0f6
                 b = parse_boolean(value);
9fc0f6
                 if (b < 0)
9fc0f6
-                        log_debug_unit(u->id, "Failed to parse forbid_restart value %s", value);
9fc0f6
+                        log_debug_unit(u->id, "Failed to parse forbid-restart value %s", value);
9fc0f6
                 else
9fc0f6
                         s->forbid_restart = b;
9fc0f6
         } else