# vi /etc/rc3.d/S78squid ====================== S78squid ===================== #!/sbin/sh # # Copyright (c) 2004 by llzqq, Inc # llzqq@126.com # All rights reserved. # #ident '@(#)squid 1.1 04/05/24 SMI' case '$1' in start) /opt/sfw/squid/sbin/squid -s ;; stop) /opt/sfw/squid/sbin/squid -k shutdown pkill squid ;; *) echo 'Usage: $0 { start | stop }' exit 1 ;; esac exit 0 ====================== S78squid ===================== # chown root:sys /etc/rc3.d/S78squid # chmod 744 /etc/rc3.d/S78squid # ln -s /etc/rc3.d/S78squid /etc/rc2.d/K78squid |