08-12-2024, 11:11 AM
(08-12-2024, 10:49 AM)Tim Curtis Wrote: 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.
nah...
i already change some, like i added debugLog statement and i modify device parameter in the librespot. and it is hardcoded
i try with restart spotify connect in renderer config page. i even stop and start it again.
but debugLog string is not show in the log at all. and device parameter is not changing at all.
thats why i asked if moode use cache before.
i make sure opcache is enable=0 and restart the php8.2-fpm service
i also restart the nginx
but the renderer looks like cached. still not change at all. the thing that i not try yet is reboot the system. cause i run the snapcast still manually
if i added debugLog in submitJob function in /inc/common.php it will state in the debug log (check with tail /var/log/moode.log)
ren-config --> submitJob
|
create session to read by worker
|
worker.php call startSpotify() (<-- in event restart and make spotify connect on)
what i missed