Page MenuHomePhabricator

Clean up the reboot/poweroff CLI and script
Open, NormalPublic

Description

There are multiple issues with it:

  • The most obvious and common date format, YYYY-DD-MM is not supported.
  • Possibility that systemctl output has no "Status" ..." line is not handled, leading to runtime errors
  • There is no way to check if shutdown is scheduled without also printing that data
  • Many messages are confusing and/or ungrammatical
  • show reboot and show poweroff still call the old script

Details

Difficulty level
Unknown (require assessment)
Version
1.2.0
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible