From: Yu Watanabe Date: Mon, 3 Apr 2017 06:38:33 +0000 (+0900) Subject: core: downgrade error message if command is prefixed with `-` and the command is... X-Git-Tag: v234~323^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5690%2Fhead;p=thirdparty%2Fsystemd.git core: downgrade error message if command is prefixed with `-` and the command is not found Fixes #5621 --- diff --git a/src/core/execute.c b/src/core/execute.c index d7798387c52..6e7c76e4ff0 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -2989,6 +2989,14 @@ int exec_spawn(Unit *unit, error_message), "EXECUTABLE=%s", command->path, NULL); + else if (r == -ENOENT && command->ignore) + log_struct_errno(LOG_INFO, r, + "MESSAGE_ID=" SD_MESSAGE_SPAWN_FAILED_STR, + LOG_UNIT_ID(unit), + LOG_UNIT_MESSAGE(unit, "Skipped spawning %s: %m", + command->path), + "EXECUTABLE=%s", command->path, + NULL); else log_struct_errno(LOG_ERR, r, "MESSAGE_ID=" SD_MESSAGE_SPAWN_FAILED_STR,