LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-06-2004, 01:30 PM   #1
dushkinup
Member
 
Registered: Feb 2004
Location: Alpha Quadrant, sol system, earth, asia, Israel.
Distribution: Computer I : Slackware 9.1 ; Computer II : Windows XP
Posts: 144

Rep: Reputation: 15
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?
 
Old 03-06-2004, 02:01 PM   #2
Qzukk
Member
 
Registered: Jun 2003
Posts: 132

Rep: Reputation: 15
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.
 
Old 03-06-2004, 03:09 PM   #3
tk31337
Member
 
Registered: Oct 2003
Location: Tucson, AZ
Distribution: Linux Mint
Posts: 194

Rep: Reputation: 32
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.
 
Old 03-06-2004, 03:51 PM   #4
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 20.1 on workstation, Debian 11 on servers
Posts: 1,334

Rep: Reputation: 54
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.
 
Old 03-07-2004, 07:55 PM   #5
crane
Member
 
Registered: Sep 2003
Location: Alabama
Distribution: Blag, Fedora core 1 and 2, Clarck Connect
Posts: 70

Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a program to start at boot ... tomazN Debian 3 10-15-2005 04:52 PM
How do I auto start modules that aren't auto loaded on boot? darkbluedrew Debian 2 09-18-2005 09:10 AM
Auto start https at boot time. fareen Linux - Newbie 1 08-14-2005 10:25 PM
auto start application acrors Fedora 10 10-11-2004 11:22 AM
How to auto-start services on boot? Neorio Linux - General 4 11-05-2003 04:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration