Home > server > Run a Command on Boot for Ubuntu

Run a Command on Boot for Ubuntu

October 10th, 2007

I used this to start fetchmail on an Ubuntu 7.10 server running Request Tracker.

Edit /etc/rc.local, add your command, make sure it doesn’t create any output. This is my command:

su rt -c “fetchmail -d 300” > /dev/null 2>&1

It starts a background fetchmail process as the “rt” user, just as the Request Tracker documentation states.

Categories: server
Comments are closed.