I am a new Rust learner and I recently came across an idea for a simple reminder application, sort of like an alarm. My question is how do I make sure my binary is always executed on reboot of system? I am looking for both Windows 10 and Ubuntu answers and I know very few things about Daemons on Linux, so I am not exactly an expert. Please provide learning resources to do this too if possible.
On Ubuntu if you want an application or a script to be executed after a reboot, you can use crontab.
Just open your ubuntu terminal and type
crontab -e
That will open a file, and in that file you can type the following as an example:
@reboot bash /home/start.sh