chiark / gitweb /
service: stop the service if ExecStartPost ends with a failure
[elogind.git] / src / systemctl.c
index 175159d68fb42fc87380d72263d198bc9f3eadeb..7373e64e8c24c53011694634e01e767fc3136569 100644 (file)
@@ -5156,7 +5156,7 @@ static int halt_main(DBusConnection *bus) {
         if (!arg_no_wtmp) {
                 if (sd_booted() > 0)
                         log_debug("Not writing utmp record, assuming that systemd-update-utmp is used.");
-                else if ((r = utmp_put_shutdown(0)) < 0)
+                else if ((r = utmp_put_shutdown()) < 0)
                         log_warning("Failed to write utmp record: %s", strerror(-r));
         }