Start - Stop Kodi with command is possible?

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
miguelcmran
Posts: 3
Joined: Wed Oct 03, 2018 1:16 pm

Start - Stop Kodi with command is possible?

Post by miguelcmran »

Is it possible to stop and start kodi from command console? I want to know if it can be done as in OSMC with the command "systemctl stop mediacenter" "systemctl start mediacenter" since I use an Android application to stop Kodi and start it remotely when I'm interested and in this way free up CPU and memory load when I'm not using it. Thank you.
DarrenHill
Posts: 29
Joined: Wed May 08, 2019 3:00 pm

Re: Start - Stop Kodi with command is possible?

Post by DarrenHill »

The "normal" way is systemctl stop kodi (and equivalents for start and restart).

OSMC changed it, but LibreElec and vanilla Kodi both have the standard process name. Try that instead?

Arguably though it's not a good habit to get into, as it doesn't shut things down gracefully and you could potentially screw things up like the database could get corrupted if you stop things at the wrong time.
miguelcmran
Posts: 3
Joined: Wed Oct 03, 2018 1:16 pm

Re: Start - Stop Kodi with command is possible?

Post by miguelcmran »

With the command "systemctl stop kodi" i get the message "Failed to stop kodi.service: Unit kodi.service not loaded".
I suspect that in Dietpi Kodi it is not executed as a service.
Post Reply