I'm developing a program that should run automatically shortly after the Linux boot.
To be more specific I'm developing for Debian and to run on Beaglebone Black. I need to run some shell commands and then run the program.
Currently I can only run the program, but I need to run a script before. For this, I'm doing the following:
cd /lib/systemd/system/
sudo nano autorun.service
Fill in with:
[Unit]
Description=Auto start software.
[Service]
WorkingDirectory=/home/debian/App/
ExecStart=/home/debian/Texas/App
KillMode=process
[Install]
WantedBy=multi-user.target
And finally:
systemctl enable rtu.service
In short, how do I auto-execute a script and then the program right after booting into Linux?