Beginner's guide to an openHABian reboot/shutdown switch

@rlkoshak Based on this discussion, should I update this tutorial to use sudo shutdown -r instead of sudo reboot?

If so, am I correct that I’ll need to modify sudoers.d to:

# Allow openhab user to execute shutdown and poweroff commands
openhab   ALL=(ALL) NOPASSWD: /sbin/shutdown, /sbin/poweroff

I also noted that Buster now uses systemctl reboot. So in that case, is it:

# Allow openhab user to execute systemctl command
openhab   ALL=(ALL) NOPASSWD: /sbin/systemctl

And then for the commands:

sudo systemctl reboot
sudo systemctl poweroff

Or is sudo no longer necessary for Buster due to systemctl being available to all users?