Server Version#: Linux debian 6.1.0-23-amd64
Player Version#: 1.40.4.8679
I want to be able to shut down the machine (thinkserver ts140) on which plex is running with home assistant.
As a first step I tried to shut down plex in the command line interface but was not able to.
I always get command not found.
Does anyboday knows how to …
shut down the machine on which plex is running (besides the power button)
if i try sudo poweroff or poweroff I get the message
-bash: sudo: command not found
and I dont know why.
If I type man poweroff i see the options explained.
Do I need to install a package to enable poweroff?
Thanks for you answer.
Based on your information and further google search I found the solution:
Login with user then change to root with su and then systemctl poweroff.
Now I have to find a way how to shut it down via home assistant.