squid(ADM)
squid -- start, stop, enable, disable, query, restart the squid proxy server
and rotate its logfiles.
Synopsis
squid [ start | stop | enable | disable | query | restart | rotate]
Description
This script controls the Squid proxy server installed on a system. The Squid proxy server can be started, stopped, enabled, disabled, and restarted. squid query returns the current state of the server (enabled, disabled, started and/or stopped). squid rotate rotates the log files.
Options
The squid script has seven options:
- start
-
starts the server
- stop
-
stops the server (however, if the server is enabled, it will automatically start upon reboot of the system)
- enable
-
ensures that the server starts when the system reboots
- disable
-
prevents the server from starting when the system reboots
- query
-
returns the current state of the server (enabled, disabled, started, and/or stopped)
- restart
-
restarts the server. Note that this option will not start a server if it does not find one running; it will only restart a currently running server.
- rotate
-
rotates the server's log files
Files
- /etc/squid
-
control script for Squid
- /usr/internet/squid
-
server root directory
- /etc/rc2.d/S91squid
-
script that starts the server automatically on boot
- /usr/internet/squid/logs/squid.pid
-
contains the process ID of the server
Examples
To set the server to restart whenever the system reboots:
To show the current state of the server:
27 August 1999
© 1999 The Santa Cruz Operation, Inc. All rights reserved.