how can i kick off a process when a linux system boots up?

0

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.

user48317

Posted 2010-09-02T16:58:35.720

Reputation: 1

Question was closed 2010-09-02T17:59:59.100

Answers

1

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

See http://linux.die.net/man/5/crontab and look for @reboot

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

Rich Homolka

Posted 2010-09-02T16:58:35.720

Reputation: 27 121

0

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

Matt

Posted 2010-09-02T16:58:35.720

Reputation: 396

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 – 2010-09-02T17:26:50.360

0

/etc/rc.local

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

Adam Butler

Posted 2010-09-02T16:58:35.720

Reputation: 571