Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How to add an application to run as a service in Linux?

is there a script in /etc i should edit? What is recommended. Right now im running something in .profile but that's kind of not what i want.

share|improve this question

marked as duplicate by Arjan, BloodPhilia, random Sep 2 '10 at 17:59

This question was marked as an exact duplicate of an existing question.

One way is to add it to your /etc/rc.local on Ubuntu. Varies on other distros but should be similar.

find /etc -name \*local\* -print
share|improve this answer
Just in case: on Gentoo, /etc/conf.d/local.start to start a program and /etc/conf.d/local.stop to stop it (if necessary) – David Z Sep 2 '10 at 17:26


This site says: "This script file is run once, before all other scripts have run but before the logon prompt appears."

If its a gui app you want launched then its probably specific to your desktop enviroment. Gnome under ubuntu has a "startup applications" tool under system/preferences

share|improve this answer

I'd use cron. Most Linux machines will use Vixie cron, which has the meta time spec @reboot.

See and look for @reboot

Much easier than setting up stuff in /etc/, especially if you want it to run as you and not root.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .