Ubuntu - run a program at startup

Soldato
Joined
15 Feb 2003
Posts
10,139
Location
Europe
I've got a dynamic IP address so I'm using no-ip to map that to a domain so I can access ssh and other goodies when away from home.

I've got everything setup and working but I need to get no-ip to run at boot. Probably at around the same time my lamp and AFS servers start up.

How do I do that in Ubuntu 13.04?

The call I use to the run the program is simply
Code:
sudo noip2

Thanks
 
I find instead of messing about with init.d, a method which has always served me well is by employing crontab and @Reboot scriptPath. I've deployed this method successfully in many linux environments.

Just need the user to be in cron group.
 
Just put "noip2" in /etc/rc.local, you might want to fully qualify the path.

rc.local is executed after everything else on the system has started up (services etc)
 
Back
Top Bottom