You can either edit the old squid init script to change the path to squid, or better you can use the script included with the source you've compiled. You can find it in squid-2.6.STABLE18/contrib/squid.rc. Make a backup of the old one first, and then:
Code:
cp squid-2.6.STABLE18/contrib/squid.rc /etc/init.d/squid
chmod +x /etc/init.d/squid
If you want to include the squid executable in your PATH then edit the PATH variable (in /etc/profile, or /etc/bashrc, or whatever your distro uses to set PATH) to include /usr/local/sbin:
Code:
export PATH=/usr/local/sbin:$PATH
Regards