'\" t .\" Title: ocf_heartbeat_Squid .\" Author: Linux-HA contributors (see the resource agent source for information about individual authors) .\" Generator: DocBook XSL Stylesheets v1.76.1 .\" Date: 03/09/2014 .\" Manual: OCF resource agents .\" Source: resource-agents UNKNOWN .\" Language: English .\" .TH "OCF_HEARTBEAT_SQUID" "7" "03/09/2014" "resource-agents UNKNOWN" "OCF resource agents" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ocf_heartbeat_Squid \- Manages a Squid proxy server instance .SH "SYNOPSIS" .HP \w'\fBSquid\fR\ 'u \fBSquid\fR [start | stop | status | monitor | meta\-data | validate\-all] .SH "DESCRIPTION" .PP The resource agent of Squid\&. This manages a Squid instance as an HA resource\&. .SH "SUPPORTED PARAMETERS" .PP \fBsquid_exe\fR .RS 4 This is a required parameter\&. This parameter specifies squid\*(Aqs executable file\&. (required, string, no default) .RE .PP \fBsquid_conf\fR .RS 4 This is a required parameter\&. This parameter specifies a configuration file for a squid instance managed by this RA\&. (unique, required, string, no default) .RE .PP \fBsquid_pidfile\fR .RS 4 This is a required parameter\&. This parameter specifies a process id file for a squid instance managed by this RA\&. (unique, required, string, no default) .RE .PP \fBsquid_port\fR .RS 4 This is a required parameter\&. This parameter specifies a port number for a squid instance managed by this RA\&. If plural ports are used, you must specifiy the only one of them\&. (unique, required, integer, no default) .RE .PP \fBsquid_stop_timeout\fR .RS 4 This is an omittable parameter\&. On a stop action, a normal stop method is firstly used\&. and then the confirmation of its completion is awaited for the specified seconds by this parameter\&. The default value is 10\&. (optional, integer, default 10) .RE .PP \fBdebug_mode\fR .RS 4 This is an optional parameter\&. This RA runs in debug mode when this parameter includes \*(Aqx\*(Aq or \*(Aqv\*(Aq\&. If \*(Aqx\*(Aq is included, both of STDOUT and STDERR redirect to the logfile specified by "debug_log", and then the builtin shell option \*(Aqx\*(Aq is turned on\&. It is similar about \*(Aqv\*(Aq\&. (optional, string, no default) .RE .PP \fBdebug_log\fR .RS 4 This is an optional and omittable parameter\&. This parameter specifies a destination file for debug logs and works only if this RA run in debug mode\&. Refer to "debug_mode" about debug mode\&. If no value is given but it\*(Aqs requied, it\*(Aqs made by the following rules: "/var/log/" as a directory part, the basename of the configuration file given by "syslog_ng_conf" as a basename part, "\&.log" as a suffix\&. (optional, string, no default) .RE .SH "SUPPORTED ACTIONS" .PP This resource agent supports the following actions (operations): .PP \fBstart\fR .RS 4 Starts the resource\&. Suggested minimum timeout: 60s\&. .RE .PP \fBstop\fR .RS 4 Stops the resource\&. Suggested minimum timeout: 120s\&. .RE .PP \fBstatus\fR .RS 4 Performs a status check\&. Suggested minimum timeout: 60\&. .RE .PP \fBmonitor\fR .RS 4 Performs a detailed status check\&. Suggested minimum timeout: 30s\&. Suggested interval: 10s\&. .RE .PP \fBmeta\-data\fR .RS 4 Retrieves resource agent metadata (internal use only)\&. Suggested minimum timeout: 5s\&. .RE .PP \fBvalidate\-all\fR .RS 4 Performs a validation of the resource configuration\&. Suggested minimum timeout: 5\&. .RE .SH "EXAMPLE" .PP The following is an example configuration for a Squid resource using the \fBcrm\fR(8) shell: .sp .if n \{\ .RS 4 .\} .nf primitive p_Squid ocf:heartbeat:Squid \e params \e squid_exe=\fIstring\fR \e squid_conf=\fIstring\fR \e squid_pidfile=\fIstring\fR \e squid_port=\fIinteger\fR \e op monitor depth="0" timeout="30s" interval="10s" .fi .if n \{\ .RE .\} .SH "SEE ALSO" .PP \m[blue]\fB\%http://www.linux-ha.org/wiki/Squid_(resource_agent)\fR\m[] .SH "AUTHOR" .PP \fBLinux\-HA contributors (see the resource agent source for information about individual authors)\fR