From: Yu Watanabe Date: Fri, 29 Dec 2017 08:00:40 +0000 (+0900) Subject: load-fragment: obsolete OnFailureIsolate= X-Git-Tag: v237~157^2~22 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=8ab39347663f408ef8589ebd3b05bb90e671dade;p=systemd%2F.git load-fragment: obsolete OnFailureIsolate= --- diff --git a/src/core/load-fragment-gperf.gperf.m4 b/src/core/load-fragment-gperf.gperf.m4 index 549c7eb4d6..dde5010e02 100644 --- a/src/core/load-fragment-gperf.gperf.m4 +++ b/src/core/load-fragment-gperf.gperf.m4 @@ -214,6 +214,7 @@ Unit.RefuseManualStop, config_parse_bool, 0, Unit.AllowIsolate, config_parse_bool, 0, offsetof(Unit, allow_isolate) Unit.DefaultDependencies, config_parse_bool, 0, offsetof(Unit, default_dependencies) Unit.OnFailureJobMode, config_parse_job_mode, 0, offsetof(Unit, on_failure_job_mode) +m4_dnl The following is a legacy alias name for compatibility Unit.OnFailureIsolate, config_parse_job_mode_isolate, 0, offsetof(Unit, on_failure_job_mode) Unit.IgnoreOnIsolate, config_parse_bool, 0, offsetof(Unit, ignore_on_isolate) Unit.IgnoreOnSnapshot, config_parse_warn_compat, DISABLED_LEGACY, 0 diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index b285264aeb..b4b1899e5c 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -3955,6 +3955,8 @@ int config_parse_job_mode_isolate( return 0; } + log_notice("%s is deprecated. Please use OnFailureJobMode= instead", lvalue); + *m = r ? JOB_ISOLATE : JOB_REPLACE; return 0; }