Squid Script (Start, Restart dan Stop)

ingat script ini hanya default letak squid saja cocokkan dengan squid sampeyan yach
vi  /usr/sbin/squid.sh     —> buat file shell.

chmod 755 squid.sh        —> Beri permision 755

———————–  Cut di sini ———————————

#!/bin/sh
echo -n ‘ Squid ‘
case “$1” in
start)
/usr/sbin/squid -D -f /etc/squid/squid.conf
;;
stop)
/usr/sbin/squid -k shutdown
;;
restart)
/usr/sbin/squid -k reconfigure
;;
*)
echo “Usage: `basename $0` {start|stop|restart}”
;;
esac

———————–  Cut di sini ———————————

Nah… jadi jika ingin men stop atau me-run kan squid tinggal gunakan command :

/usr/sbin/squid.sh start    —> ( gunakan start, stop atau restart ).

Semoga membantu

thanks to:

http://www.google.com

http://www.wordpress.com

#indolinux@dalnet

semua sumber yang tidak bisa di sebutkan satu2

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s