Replies: 5 comments
-
Maybe try using 'wait' |
Beta Was this translation helpful? Give feedback.
-
I don't know anything about this, but have you disabled the mpd state-file? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the suggestions. I'm new to rAudio so will have to read up on what the mpd state file is. Meanwhile I read the source code and as I suspected startup.sh runs before MPD starts
A workaround is to add a line that makes rAudio call another script after MPD start. [1] add a line after the
We can use sed to add that line [2] create the script containing MPC commands (change This works for me so far. But I suppose the next rAudio update could undo step [1]. @rern is there a better, already supported way to do what I want here? If not could you add step [1] or similar to master so users can script MPC commands on startup that survive rAudio updates? (edit: improved step description) |
Beta Was this translation helpful? Give feedback.
-
@omnisy |
Beta Was this translation helpful? Give feedback.
-
@R101G Thanks. Looks like it is the file So an alternative to my solution above is to have Nice to have options to choose from! But I think the earlier solution with an extra .sh script and MPC commands is an easier path if someone want to do more complex stuff with long playlists and other things on every startup. |
Beta Was this translation helpful? Give feedback.
-
I want rAudio to always start playing a webradio stream after every reboot or power off. I created
boot/startup.sh
withmyplaylist
is the name of a playlist I have saved in rAudio that points to a webradio stream.Those commands work just fine when I SSH in to a running rAudio, but not at startup. For example if rAudio was paused before shutdown it starts up paused and myplaylist is not loaded.
Does
startup.sh
run so early that MPD is not yet ready to receive MPC commands? How to best solve that problem? I could try to schedule the script to run later in the boot process but I'm not familiar enough with Arch and rAudio to know what the best solution is for that. Should I wait for a process to exist, for some time to pass or use some other approach?Beta Was this translation helpful? Give feedback.
All reactions