Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Startup Script
#1
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/
Reply
#2
(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?
Reply
#3
You could write a systemd service who call the script, it will be still here after a moOde update
Reply


Forum Jump: