Designed by us, defined by you. Snakeoil OS is: Music Your Way!

Investigate and fix MPD startup issue.

First mentioned here

Thank you Agent Kith for your extremely hard work and support of Snakeoil OS. In old tread related to umpdcli I told about my issue in 1.4.x versions. MPD do not start at boot, and I need to click "save" button(restart players). Then it works and restarts properly. From some investigation: on "save" button snakeoil runs stop, then start script for mpd. But on boot snakeoil runs this scripts in reverse order, start then stop. My PC is GB Brix with celeron N3350, Ubuntu Server 24.04, SO 1.4.1 was fresh install, then updates to 1.4.2 and 1.4.3 by WebGUI. I do "forced fix" by renaming stop script, but in price can`t properly restart mpd from gui. Can make pair of services that rename "stop" at boot, than back, but maybe there is more proper other solution.

User also reported a fault via email. The stop function should not be executed, need to find out why.

Jun 25 20:04:46 snakeoil snakeoil-server.sh[954]: [7] Process finished bash -c cd /var/www/;_NAME="23" _OUTPUT="hw:1,0" _FORMAT="pcm" _OPTIONS=""  /var/www/music_players/mpd-v23/init /var/www/music_players/mpd-v23 2>&1;/var/www/music_players/mpd-v23/start /var/www/music_players/mpd-v23 2>&1; [worker/run_process.cpp:82|run_process_c::process_finished()]
Jun 25 20:04:46 snakeoil snakeoil-server.sh[954]: [7] Process finished bash -c cd /var/www;bash "/var/www/music_players/mpd-v23/stop" [worker/run_process.cpp:82|run_process_c::process_finished()]
Edited by agent_kith