X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemctl.c;h=63e74d904a93d0cceac7c3ac3d80fd17080b3b70;hb=1de4d79bf554946f486adf56ed765c5335816f15;hp=f5a87fc701c254bf2f9e613a76f386a3195f3bcc;hpb=d68201e9aa5e9ebd6085b1bb8892c42e9d20be75;p=elogind.git diff --git a/src/systemctl.c b/src/systemctl.c index f5a87fc70..63e74d904 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -4042,7 +4042,7 @@ static int install_info_apply(const char *verb, LookupPaths *paths, InstallInfo } if (!f) { -#if defined(TARGET_FEDORA) && defined (HAVE_SYSV_COMPAT) +#if (defined(TARGET_FEDORA) || defined(TARGET_MANDRIVA)) && defined (HAVE_SYSV_COMPAT) if (endswith(i->name, ".service")) { char *sysv; @@ -4072,7 +4072,7 @@ static int install_info_apply(const char *verb, LookupPaths *paths, InstallInfo argv[1] = file_name_from_path(sysv); argv[2] = streq(verb, "enable") ? "on" : - streq(verb, "disable") ? "off" : NULL; + streq(verb, "disable") ? "off" : "--level=3"; log_info("Executing %s %s %s", argv[0], argv[1], strempty(argv[2]));