diff --git a/init/reboot.cpp b/init/reboot.cpp index 27a7876db..3351c4c45 100644 --- a/init/reboot.cpp +++ b/init/reboot.cpp @@ -680,8 +680,8 @@ static void DoReboot(unsigned int cmd, const std::string& reason, const std::str << "': " << result.error(); } s->SetShutdownCritical(); - } else if (do_shutdown_animation) { - continue; + } else if (do_shutdown_animation && s->classnames().count("animation") > 0) { + // Need these for shutdown animations. } else if (s->IsShutdownCritical()) { // Start shutdown critical service if not started. if (auto result = s->Start(); !result.ok()) {