Starting a background application automatically on boot
I can run the following command in a terminal
sudo /usr/sbin/archttp64 81
which is a management console for the RAID controller on this machine. Then I can run Firefox and use the address: localhost:81
and log into the console and manage my RAID set.
I don't want to have to do this every time I want to check in on my RAID set, plus, unless the utility is running I won't receive status emails if there is an issue.
I've tried using the "Startup Applications" and add an Additional Startup Program, but its not working properly or more likely I've got something mis-configured.
My info in Edit Startup Program:
- Name: Areca ArcHTTP Utility
- Command: /usr/sbin/archttp64 81
- Comment:
Any ideas?
Solution 1:
Any script that you place in /etc/rc.local file will execute on boot.
Place your command there without sudo.
Solution 2:
You can have a look at the following links:
http://en.kioskea.net/faq/3348-ubuntu-executing-a-script-at-startup-and-shutdown
http://embraceubuntu.com/2005/09/07/adding-a-startup-script-to-be-run-at-bootup