05-18-2025, 04:57 PM
I'm working on a script and it's goal is to shut down the raspberry pi after one hour of moOde no longer playing songs, so far I've discovered:
To read if MPD is "playing", "stopped" or "paused", and this code runs fine. I've also read this thread https://moodeaudio.org/forum/showthread.php?tid=7513 to learn about MPD and the renderers. But I don't want the raspberry pi to shut down if a necesary update is running or if I'm updating the library, therefore my questions:
1- What program runs the Software update? Is it apt? I can detect if apt is running with something like
2- What program runs the Update library?
3- What program runs the Thumbnail Generator?
4- Am I missing any other "vital" program who would break my moOde functionality if interrupted by a shut down?
Thanks
bottlecaps
Code:
mpc status %state%
1- What program runs the Software update? Is it apt? I can detect if apt is running with something like
Code:
pidof -x apt
2- What program runs the Update library?
3- What program runs the Thumbnail Generator?
4- Am I missing any other "vital" program who would break my moOde functionality if interrupted by a shut down?
Thanks
bottlecaps