Click to See Complete Forum and Search --> : How do I have a program start automatically?


Squill
09-28-2004, 12:01 PM
Okay where I work we have a linux box running Squid. The GUI doesn't seem to work with the monitor we have on the KVM switch we use. So I have two questions. One. How do I have Squid start automatically when I start up the box (the command I use is squid -NCd1)
Two. How do I make the linux box automatically start up in a command line prompt and not in the GUI. Thanks a bunch!

deathadder
09-28-2004, 12:10 PM
You could try adding the command to your .bashrc file, so it runs that command when you login. Secondly change your /etc/inittab file.

ph34r
09-28-2004, 12:10 PM
What distro? To start squid automatically, you will want to write a start script for it and either call it in your default runlevel OR from rc.local

To change your default runlevel, edit /etc/inittab - what you have to change and change it to will depend on your distro.

deathadder
09-28-2004, 12:13 PM
Can't get much better timing :)

Squill
09-28-2004, 11:29 PM
yeah we're running Redhat 9. So I'll have to try that out tomorrow when I get to work.