08-12-2024, 10:49 AM
If you want to add something to the command string that starts librespot then modify the function startSpotify() in /inc/renderer.php.
worker.php gets started in the /etc/rc.local script. Its a daemon (server) that performs the moode startup sequence and then goes into a 3 second polling loop waiting for a job to be placed in its queue by one of the config screens and then does whatever the job requires. The polling loop is also where renderer active states are checked.
watchdog.sh is started by worker, php at the end of the startup sequence. Its a daemon that runs a 6 second polling loop that checks for and logs PHP, MPD and TRX crashes (rare) and also performs the "Wake display on play" action.
worker.php gets started in the /etc/rc.local script. Its a daemon (server) that performs the moode startup sequence and then goes into a 3 second polling loop waiting for a job to be placed in its queue by one of the config screens and then does whatever the job requires. The polling loop is also where renderer active states are checked.
watchdog.sh is started by worker, php at the end of the startup sequence. Its a daemon that runs a 6 second polling loop that checks for and logs PHP, MPD and TRX crashes (rare) and also performs the "Wake display on play" action.