LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Adding an application to auto-start on boot-time (https://www.linuxquestions.org/questions/linux-newbie-8/adding-an-application-to-auto-start-on-boot-time-154266/)

dushkinup 03-06-2004 01:30 PM

Adding an application to auto-start on boot-time
 
Recently I installed Squid Proxy server. And I'm just SICK of starting it myself so my brother can surf the web.

How do I add that script?

Qzukk 03-06-2004 02:01 PM

Depends on your distribution. MOST *cough*notslackware*cough* use a simple system for controlling what gets started. Startup scripts start in /etc/init.d (/etc/rc.d/init.d/ for redhat). Then, depending on your runlevel # (see /etc/inittab), you create a symlink from /etc/init.d/scriptname to /etc/rc#.d/SXXscriptname where XX is a number that controls what order things are started in (be sure it starts after your network config!) (thats in /etc/rc.d/rc#.d/ on redhat)

Squid should have come with a script, if not, there is usually a skeleton script lying around in that init.d directory, or you can gut someone else's script and use that. Make sure the script is executable.

tk31337 03-06-2004 03:09 PM

On most distros there's "chkconfig" which adds the script to a given runlevel for you. Also, most distros have a graphical chkconfig-like front-end where you can simply click something like "Enable" next to the service you which to have run at boot time.

Red Squirrel 03-06-2004 03:51 PM

I put it in /etc/rc.d/rc.local just make sure you put & after the path/command so it does it in the background. Took me a while to figure this out.

crane 03-07-2004 07:55 PM

I found info on a message board about getting teamspeak and Q3 to work at the same time. I was told to add two lines to my start up script but I am not sure which script that is can anyone point me in the right direction? I am using Fedora core.


All times are GMT -5. The time now is 06:01 PM.