chiark / gitweb /
path-lookup: monitor /etc/systemd/user for user manager
[elogind.git] / src / initctl.c
index f36f1cc704fd49417004dd5593fcf5271c13149a..eaa717ad916bdb55115870696123397bb012759e 100644 (file)
@@ -93,6 +93,8 @@ static const char *translate_runlevel(int runlevel, bool *isolate) {
         for (i = 0; i < ELEMENTSOF(table); i++)
                 if (table[i].runlevel == runlevel) {
                         *isolate = table[i].isolate;
+                        if (runlevel == '6' && kexec_loaded())
+                                return SPECIAL_KEXEC_TARGET;
                         return table[i].special;
                 }