LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to start squid service automatically ? (https://www.linuxquestions.org/questions/linux-server-73/how-to-start-squid-service-automatically-868419/)

gardenair 03-14-2011 02:23 AM

How to start squid service automatically ?
 
Hi,
When ever I reboot my server I always turn on the squid service. Is there any way that without giving command
Code:

#service squid start
my squid service should automatically start ?

thanks in advance,
garden

corp769 03-14-2011 02:27 AM

You need to use chkconfig.
Code:

chkconfig squid on
Cheers,

Josh

EricTRA 03-14-2011 02:44 AM

Hello,

Depends on what distro you're using. You can find the necessary info reading the man page for your distro. Since you didn't indicate what distro you use, I've listed the most common onces here.

For RedHat and related:
Code:

man chkconfig
For Debian and related (5.0)
Code:

man update-rc.d
For Debian and related (6.0)
Code:

man insserv
Kind regards,

Eric

gardenair 03-14-2011 03:04 AM

thanks for help :)

EricTRA 03-14-2011 03:05 AM

Hi,

You're welcome. If you consider your problem/question solved then please mark it as such using the Thread Tools.

Kind regards,

Eric

corp769 03-14-2011 04:27 AM

Thanks for stealing my thread, Eric :)

EricTRA 03-14-2011 05:05 AM

Quote:

Originally Posted by corp769 (Post 4290027)
Thanks for stealing my thread, Eric :)

Hi Josh,

All in the interest of completeness buddy :)

Kind regards,

Eric

corp769 03-14-2011 10:46 AM

Quote:

Originally Posted by EricTRA (Post 4290046)
Hi Josh,

All in the interest of completeness buddy :)

Kind regards,

Eric

Completeness? You know I'm at work.... LOL


All times are GMT -5. The time now is 10:11 PM.