mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
systemctl: allow user to suppress output when no action scheduled (#32278)
This commit is contained in:
@@ -397,7 +397,7 @@ int logind_show_shutdown(void) {
|
||||
return r;
|
||||
|
||||
if (isempty(action))
|
||||
return log_error_errno(SYNTHETIC_ERRNO(ENODATA), "No scheduled shutdown.");
|
||||
return log_full_errno(arg_quiet ? LOG_DEBUG : LOG_ERR, SYNTHETIC_ERRNO(ENODATA), "No scheduled shutdown.");
|
||||
|
||||
if (STR_IN_SET(action, "halt", "poweroff", "exit"))
|
||||
pretty_action = "Shutdown";
|
||||
|
||||
Reference in New Issue
Block a user