2
I am developing a program that should run automatically soon after the startup of Linux.
To be more specific I am 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 first. For that, I’m doing the following:
cd /lib/systemd/system/
sudo nano autorun.service
I fill 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-run a script and then the program right after booting on Linux?
The file has to be created every time you boot?
– Yamaneko
@Victorhugo I checked here and apparently does not need, the program is initiated since I have already activated it. In this case, the script is summarized only the other commands that I will add.
– Lucas Lima