Improve message for scheduled shutdown or reboot
authorTomáš Pospíšek <tpo_deb@sourcepole.ch>
Sun, 14 Jun 2020 08:43:06 +0000 (10:43 +0200)
committerGitHub <noreply@github.com>
Sun, 14 Jun 2020 08:43:06 +0000 (10:43 +0200)
commit6df8a6c753ed3b91464dd60d10fe4d291257870c
tree982b7547c8ed3e304068331dff830035ca05369f
parent209b2592ed5883bdfc7a0f2e5b7277c5c4fe834e
Improve message for scheduled shutdown or reboot

Depending on if the system has been scheduled for shutdown or for reboot pring the corresponding message (and not only "Shutdown"). Prtinting the "wrong" message when rebooting will mislead and panic people. I get these messages via cron from remote servers and it would be bad if those systems actually *did* shut down, as the email from cron is telling me. Those messages cause an adrenalin spike in our team, which wouldn't happen, if the message was "correct"

Fixes #16129.
src/systemctl/systemctl.c