Moode Forum

Full Version: Startup Script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a script I want to run at startup.  In the past I put it in rc.local but that seems to break after update.  Is there a better way to start a script and keep it persistent after updates?

Edit: Suggestion by TookaFace in post http://moodeaudio.org/forum/showthread.p...6#pid17186 is working.

It didn't work after following a few online guides but finally had success following this guide:
https://www.raspberrypi-spy.co.uk/2015/1...g-systemd/
(03-04-2020, 11:24 PM)normand Wrote: [ -> ]I have a script I want to run at startup.  In the past I put it in rc.local but that seems to break after update.  Is there a better way to start a script and keep it persistent after updates?

Also, currently my script will reboot the player with "sudo reboot now", but i noticed there is a reboot script in var folder.  Should that be used in favor of my current method?
You could write a systemd service who call the script, it will be still here after a moOde update