From 85163756da6c559c9dc8ba3e035ecb587b2d48ef Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 27 Nov 2018 17:10:47 +0100 Subject: [PATCH] systemctl: rework message suggesting how to create a new unit file We need to specifiy --full for creating full unit files. Also, this is an explanatory hint, hence shouldn't be logged on LOG_ERR level. --- src/systemctl/systemctl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index e7cf33ec52..0fcf597767 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -6952,10 +6952,10 @@ static int find_paths_to_edit(sd_bus *bus, char **names, char ***paths) { assert(!path); if (!arg_force) { - log_error("Run 'systemctl edit%s --force %s' to create a new unit.", - arg_scope == UNIT_FILE_GLOBAL ? " --global" : - arg_scope == UNIT_FILE_USER ? " --user" : "", - *name); + log_info("Run 'systemctl edit%s --force --full %s' to create a new unit.", + arg_scope == UNIT_FILE_GLOBAL ? " --global" : + arg_scope == UNIT_FILE_USER ? " --user" : "", + *name); return -ENOENT; }