LinuxQuestions.org
Review your favorite Linux distribution.
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, 02: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, 03: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, 04:09 PM   #3
tk31337
Member
 
Registered: Oct 2003
Location: Tucson, AZ
Distribution: Mandrake 10.0 Official
Posts: 193

Rep: Reputation: 31
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, 04:51 PM   #4
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 17.1 KDE on workstation, CentOS 6.x on servers
Posts: 1,085

Rep: Reputation: 46
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, 08: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:52 PM
How do I auto start modules that aren't auto loaded on boot? darkbluedrew Debian 2 09-18-2005 10:10 AM
Auto start https at boot time. fareen Linux - Newbie 1 08-14-2005 11:25 PM
auto start application acrors Fedora 10 10-11-2004 12:22 PM
How to auto-start services on boot? Neorio Linux - General 4 11-05-2003 05:52 AM


All times are GMT -5. The time now is 10:57 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration