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? |
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. |
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.
|
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.
|
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. |