Articles

Start a program when Linux startup

IBM
March 28, 2006 at 23:45:19
Specs: Linux, 512

Hello,
Could you tell me how can I start a program when Linux startup?

Thanks

Vunguyen


See More: Start a program when Linux startup

Report •


#1
March 29, 2006 at 01:24:12

What distro are you running? Are you talking about running at boot time or when you start a graphical desktop? If so, which window manager, KDE, Gnome etc?

Report •

#2
March 29, 2006 at 22:18:34

Hello,

I am using Linux Advanced Server 3.0. I want to run a program when at boot time.

Thanks

Vunguyen


Report •

#3
March 29, 2006 at 23:36:05

Advanced Server 3.0....is that redhat? If so the simplest way would be to just add the command to /etc/rc.d/rc.local. This would get executed once when the computer boots. A better way would be to create a script for it in /etc/rc.d/init.d/ and then make links to it in the relevent runlevels /etc/rc.d/rc3.d/, /etc/rc.d/rc5.d/ etc This way the command can be controlled a little better and can be started and stopped when switching runlevels.

For more info on the redhat boot process:
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-boot-init-shutdown-process.html


Report •

Related Solutions

#4
March 30, 2006 at 19:06:48

put the executable file in /etc/rc.d/rc.local


Report •

#5
March 30, 2006 at 23:02:09

Hello,

I want to start OC4J container at Linux boot time.

Vunguyen


Report •


Ask Question