Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Two functions on one button in Gpio buttons
#4
Why not have a script that checks the status of the mpd_oled service ?

e.g:

Code:
if (systemctl is-active --quiet service); then
       echo -e "SERVICE is Running!"
else
       echo -e "SERVICE has Stopped status!"
fi

Change the echo to start/stop as appropriate.
Reply


Messages In This Thread
RE: Two functions on one button in Gpio buttons - by steve4star - 07-05-2024, 09:00 PM

Forum Jump: