]> err.no Git - systemd/commitdiff
load-fragment: move NonBlocking option from generic to service options
authorLennart Poettering <lennart@poettering.net>
Sat, 10 Apr 2010 15:48:41 +0000 (17:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 10 Apr 2010 16:00:34 +0000 (18:00 +0200)
load-fragment.c

index f24950c70dce9ce121b4b71192e2935fafb542aa..353a086d0492dad96ed8fe166e34df81784a7a0a 100644 (file)
@@ -1170,7 +1170,6 @@ static int load_from_path(Unit *u, const char *path, UnitLoadState *new_state) {
                 { "LimitNICE",              config_parse_limit,           &(context).rlimit[RLIMIT_NICE],                  section   }, \
                 { "LimitRTPRIO",            config_parse_limit,           &(context).rlimit[RLIMIT_RTPRIO],                section   }, \
                 { "LimitRTTIME",            config_parse_limit,           &(context).rlimit[RLIMIT_RTTIME],                section   }, \
-                { "NonBlocking",            config_parse_bool,            &(context).non_blocking,                         section   }, \
                 { "ControlGroup",           config_parse_cgroup,          u,                                               section   }, \
                 { "NewSession",             config_parse_bool,            &(context).new_session,                          section   }
 
@@ -1204,6 +1203,7 @@ static int load_from_path(Unit *u, const char *path, UnitLoadState *new_state) {
                 { "ValidNoProcess",         config_parse_bool,            &u->service.valid_no_process,                    "Service" },
                 { "SysVStartPriority",      config_parse_sysv_priority,   &u->service.sysv_start_priority,                 "Service" },
                 { "KillMode",               config_parse_kill_mode,       &u->service.kill_mode,                           "Service" },
+                { "NonBlocking",            config_parse_bool,            &u->service.exec_context.non_blocking,           "Service" },
                 EXEC_CONTEXT_CONFIG_ITEMS(u->service.exec_context, "Service"),
 
                 { "ListenStream",           config_parse_listen,          &u->socket,                                      "Socket"  },