Thank you for your donation!


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


Test whether Moode startup has completed from systemd service file
#2
It looks like a race condition issue given the error below which indicates worker.php has exited after testing for Linux startup complete for 3 minutes. 

Code:
20230503 121133 worker: ERROR: Linux startup failed to complete after waiting 180 seconds

The command being used is:
Code:
systemctl is-system-running

It returns "running" if all systemd units started successfully or "degraded" if one or more units fails to start. It can also return other values but Worker tests for only "running" and "degraded" and considers these values to mean that Linux startup has completed and Worker can proceed with moOde startup which eventually ends with the 'wrkready' param being set to '1'.

So basically worker is in the 3 minute is-system-running loop waiting for all systemd units to complete with success or fail while mpd_oled systemd unit is in the launch test loop waiting for wrkready = 1. This means the mpd_oled systemd unit will not complete and still be in that loop after 3 minutes. At that time worker exits and 'wrkready' param is still  '0'.

Maybe running the launch test script from mpd_oled itself might work because this would allow the systemd unit to complete???
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: Test whether Moode startup has completed from systemd service file - by Tim Curtis - 05-03-2023, 01:41 PM

Forum Jump: