HostedDB - Dedicated UNIX Servers

Securing-Optimizing-RH-Linux-1_2_353
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca © Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ® 353     $SQUID $SQUID_OPTS -k reconfigure       exit $?     ;; restart)     $0 stop     $0 start     ;; status)     status $SQUID      $SQUID -k check     exit $?     ;; probe)     exit 0;     ;; *)     echo "Usage: $0 {start|stop|status|reload|restart}"     exit 1 esac exit $RETVAL Now, make this script executable and change its default permission: [root@deep /]# chmod 700 /etc/rc.d/init.d/squid Create the symbolic rc.d links for Squid with the command: [root@deep /]# chkconfig --add squid By default squid script will not start automatically the proxy server on Red Hat Linux when you reboot the server. You can change it default by executing the following command: [root@deep /]# chkconfig --level 345 squid on Start your new Squid Proxy Server manually with the following command: [root@deep /]# /etc/rc.d/init.d/squid start Starting squid: init_cache_dir ufs... squid Configuration of the “/etc/logrotate.d/squid” file Configure your “/etc/logrotate.d/squid” file to rotate each week your log files automatically. Create the squid file (touch /etc/logrotate.d/squid) and add: /var/log/squid/access.log {     weekly     rotate 5     copytruncate     compress     notifempty     missingok } /var/log/squid/cache.log {     weekly     rotate 5     copytruncate     compress     notifempty