]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: be sure to be quiet with 'systemctl is-enabled --quiet' (#3819)
authorChristian Rebischke <Chris.Rebischke@posteo.de>
Thu, 28 Jul 2016 02:40:20 +0000 (04:40 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 28 Jul 2016 02:40:20 +0000 (22:40 -0400)
Fixes #3813.

src/systemctl/systemctl.c

index 91caae009eeb33a1cf4772ba695bc66a046a82fe..782824ff38484bba03960bd6d5cb9a0da0e0bfc6 100644 (file)
@@ -5566,10 +5566,12 @@ static int enable_sysv_units(const char *verb, char **args) {
                 if (!found_sysv)
                         continue;
 
-                if (found_native)
-                        log_info("Synchronizing state of %s with SysV service script with %s.", name, argv[0]);
-                else
-                        log_info("%s is not a native service, redirecting to systemd-sysv-install.", name);
+                if (!arg_quiet) {
+                        if (found_native)
+                                log_info("Synchronizing state of %s with SysV service script with %s.", name, argv[0]);
+                        else
+                                log_info("%s is not a native service, redirecting to systemd-sysv-install.", name);
+                }
 
                 if (!isempty(arg_root))
                         argv[c++] = q = strappend("--root=", arg_root);