So once I log into my Ubuntu VM I launch my application by doing a
sudo app
Now I want my application to get started while booting. I tried it by creating an rc.
script but nothing seems to work. Can someone point me to the correct way of getting it done?
Also my application has to run sudo
. Hoping auto start will have the runlevel as root
/etc/rc.local
(sudo nano /etc/rc.local
) and adding your command before the line containingexit 0
? You don't needsudo
here because all commands in this file are executed as root by default./etc/rc.local
? Also, you don't putexit 0
yourself there, but you put your command above theexit 0
that's already there.