[PROBLEM] Add startup script - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: Community (https://moodeaudio.org/forum/forumdisplay.php?fid=18) +--- Forum: General Discussion (https://moodeaudio.org/forum/forumdisplay.php?fid=21) +--- Thread: [PROBLEM] Add startup script (/showthread.php?tid=2040) |
Add startup script - antipiot - 01-04-2020 Hello everybody ! Happy new year :-) I'm looking for some help: I've a little script that i want to be ran at every moode audio startup: it import my palaylist and "convert" them for moode-audio. i'v tried to add this at startup in this file: /etc/rc.local /home/pi/playlist_importer.sh > /dev/null 2>&1 but once i reboot Moode audio services dont start (MPC). Code: #!/bin/bash Am i doing it wrong? Is there a way for this? Many thanks for your help:-) Regards Jonas RE: Add startup script - TheOldPresbyope - 01-04-2020 @antipiot I assume you've marked the playlist_importer.sh script as executable. Probably you need to run your script in the background, e.g., in rc.local, add a trailing ampersand Code: /home/pi/playlist_importer.sh > /dev/null 2>&1 & Kent RE: Add startup script - antipiot - 01-25-2020 Hello! Many thanks for your reply. Looks like it's working now! :-) |