How to start squid at boot time?

Posted on 2006-05-31
Last Modified: 2010-04-20
How to start squid at boot time?  I'm using Mandrake Linux 10.....

"I Did the commands below but did not succeed"
cd to /etc/rc.d/rc3.d
ln -s /etc/rc.d/init.d/squid S81squid
Question by:rtdavid
    LVL 28

    Accepted Solution

    I don't know about mandrake, but there should be an /etc/init.d/ where you can put an initialization script (if you have one). same initializatio script you can put in /etc/rc.d/rc.x where x is the init level (so the script will be executed when entering the specific run level). or edit /etc/rc.d/rc.local and add the line that you use to start squid at the end.
    LVL 43

    Assisted Solution

    try: chkconfig squid on # will do the symlinks for You
    LVL 7

    Expert Comment

    If the links are not present in the rc.d folders, then use the chkconfig command to create them:

    chkconfig --add squid

    you can verify and change which run levels are set with the same command:

    chkconfig --list squid
    squid           0:off   1:off   2:off   3:off   4:off   5:off   6:off

    chkconfig squid on
    chkconfig --list squid
    squid           0:off   1:off   2:off   3:on   4:on   5:on   6:off

    Note that setting soft links manually or using chkconfig will have no impact on the server until after reboot.  

    Confirm by running the server that it is configured properly as well, you could be chasing a runlevel setup when the probelm is the server has a bad configuration file:

    do the following:
    # This command traces log messages in the background
    tail -f /var/log/messages &  
    service squid start
    service squid status
    If you get normal startup messages and status says:
    "squid (pid 18704 18701) is running..."
    Reboot and everything is good

    If you get error messages and status says:
    "squid dead but subsys locked"

    Then you need to go over your setup again



    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    This video discusses moving either the default database or any database to a new volume.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now