diff options
Diffstat (limited to 'www/varnish2/files')
-rw-r--r-- | www/varnish2/files/pkg-message.in | 18 | ||||
-rw-r--r-- | www/varnish2/files/varnishd.in | 84 | ||||
-rw-r--r-- | www/varnish2/files/varnishlog.in | 49 | ||||
-rw-r--r-- | www/varnish2/files/varnishncsa.in | 49 |
4 files changed, 0 insertions, 200 deletions
diff --git a/www/varnish2/files/pkg-message.in b/www/varnish2/files/pkg-message.in deleted file mode 100644 index 923ce1baeb11..000000000000 --- a/www/varnish2/files/pkg-message.in +++ /dev/null @@ -1,18 +0,0 @@ -QUICK-START GUIDE - -It's two in the morning and someone posted a link to your website on -slashdot. Don't panic, it takes only a minute to set up Varnish in -front of your web server: - -1) Install Varnish -2) Reconfigure your web server to listen on localhost:8080 -3) echo 'varnishd_enable="YES"' >>/etc/rc.conf -4) %%PREFIX%%/etc/rc.d/varnishd start - -Refer to the documentation for more advanced configuration. - -NOTE TO USERS UPGRADING FROM AN OLDER VERSION OF VARNISH: - -Several rc variables have been renamed and / or have new default -values. Refer to the comments in the rc.d scripts for a detailed -description of these variables. diff --git a/www/varnish2/files/varnishd.in b/www/varnish2/files/varnishd.in deleted file mode 100644 index 93c070424252..000000000000 --- a/www/varnish2/files/varnishd.in +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: varnishd -# REQUIRE: DAEMON -# KEYWORD: shutdown - -# -# Add the following line to /etc/rc.conf to enable varnishd: -# -# varnishd_enable="YES" -# -# Configuration variables and their default values: -# -# varnishd_pidfile - full path to the PID file. -# default: "/var/run/varnishd.pid" -# -# varnishd_listen - address and port at which varnishd will listen for -# client requests. -# default: ":80" -# -# varnishd_admin - address and port at which varnishd will listen for -# administrative commands. -# default: "localhost:81" -# -# varnishd_backend - address of the backend server. -# default: "localhost:8080" -# -# varnishd_config - name of the varnishd config file. -# default: unset. -# -# varnishd_hash - hash algorithm -# default: "classic,16383" -# -# varnishd_storage - storage method and parameters. -# default: "file,/tmp,50%" -# -# varnishd_user - unprivileged user for the child process. -# default: "www" -# -# varnishd_group - unprivileged group for the child process. -# default: "www" -# -# varnishd_flags - complete command line arguments. -# default if varnishd_config is unset: "-P ${varnishd_pidfile} -a ${varnishd_listen} -T ${varnishd_admin} -b ${varnishd_backend} -s ${varnishd_storage} -h ${varnishd_hash} -u ${varnishd_user} -g ${varnishd_group}" -# default if varnishd_config is set: "-P ${varnishd_pidfile} -a ${varnishd_listen} -T ${varnishd_admin} -f ${varnishd_config} -s ${varnishd_storage} -h ${varnishd_hash} -u ${varnishd_user} -g ${varnishd_group}" -# -# See varnishd(1) for a detailed overview of command-line options. -# - -. /etc/rc.subr - -name="varnishd" -rcvar=`set_rcvar` - -command="%%PREFIX%%/sbin/${name}" - -# read configuration and set defaults -load_rc_config ${name} -: ${varnishd_enable:="NO"} -: ${varnishd_pidfile:="/var/run/${name}.pid"} -: ${varnishd_listen:=":80"} -: ${varnishd_admin:="localhost:81"} -: ${varnishd_backend:="localhost:8080"} -: ${varnishd_config:=""} -: ${varnishd_storage:="file,/tmp,50%"} -: ${varnishd_hash:="classic,16383"} -: ${varnishd_user:="www"} -: ${varnishd_group:="www"} -if [ -n "${varnishd_config}" ] ; then - : ${varnishd_flags:="-P ${varnishd_pidfile} -a ${varnishd_listen} -T ${varnishd_admin} -f ${varnishd_config} -s ${varnishd_storage} -h ${varnishd_hash} -u ${varnishd_user} -g ${varnishd_group}"} -else - : ${varnishd_flags:="-P ${varnishd_pidfile} -a ${varnishd_listen} -T ${varnishd_admin} -b ${varnishd_backend} -s ${varnishd_storage} -h ${varnishd_hash} -u ${varnishd_user} -g ${varnishd_group}"} -fi - -# If we leave these set, rc.subr will su to them before starting -# varnishd, which is not what we want. -unset varnishd_user -unset varnishd_group - -pidfile="${varnishd_pidfile}" -run_rc_command "$1" diff --git a/www/varnish2/files/varnishlog.in b/www/varnish2/files/varnishlog.in deleted file mode 100644 index 4a0f64c8a668..000000000000 --- a/www/varnish2/files/varnishlog.in +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: varnishlog -# REQUIRE: DAEMON -# KEYWORD: shutdown - -# -# Add the following line to /etc/rc.conf to enable varnishlog: -# -# varnishlog_enable="YES" -# -# Configuration variables and their default values: -# -# varnishlog_pidfile - full path to the PID file. -# default: "/var/run/varnishlog.pid" -# -# varnishlog_file - full path to the log file. -# default: "/var/log/varnish.log" -# -# varnishlog_flags - command line arguments. -# default: "-D -P ${varnishlog_pidfile} -a -w ${varnishlog_file}" -# -# Add the following line to /etc/newsyslog.conf to rotate the log file -# once a day: -# -# /var/log/varnish.log 640 7 * @T00 JB /var/run/varnishlog.pid -# -# See varnishlog(1) for a detailed overview of command-line options. -# - -. /etc/rc.subr - -name="varnishlog" -rcvar=`set_rcvar` - -command="%%PREFIX%%/bin/${name}" - -# read configuration and set defaults -load_rc_config ${name} -: ${varnishlog_enable:="NO"} -: ${varnishlog_pidfile:="/var/run/${name}.pid"} -: ${varnishlog_file:="/var/log/varnish.log"} -: ${varnishlog_flags:="-P ${varnishlog_pidfile} -D -a -w ${varnishlog_file}"} - -pidfile=${varnishlog_pidfile} -run_rc_command "$1" diff --git a/www/varnish2/files/varnishncsa.in b/www/varnish2/files/varnishncsa.in deleted file mode 100644 index ba3d3760ffc5..000000000000 --- a/www/varnish2/files/varnishncsa.in +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: varnishncsa -# REQUIRE: DAEMON -# KEYWORD: shutdown - -# -# Add the following line to /etc/rc.conf to enable varnishncsa: -# -# varnishncsa_enable="YES" -# -# Configuration variables and their default values: -# -# varnishncsa_pidfile - full path to the PID file. -# default: "/var/run/varnishncsa.pid" -# -# varnishncsa_file - full path to the log file. -# default: "/var/log/varnishncsa.log" -# -# varnishncsa_flags - command line arguments. -# default: "-D -P ${varnishncsa_pidfile} -a -c -w ${varnishncsa_file}" -# -# Add the following line to /etc/newsyslog.conf to rotate the log file -# once a day: -# -# /var/log/varnishncsa.log 640 7 * @T00 JB /var/run/varnishncsa.pid -# -# See varnishncsa(1) for a detailed overview of command-line options. -# - -. /etc/rc.subr - -name="varnishncsa" -rcvar=`set_rcvar` - -command="%%PREFIX%%/bin/${name}" - -# read configuration and set defaults -load_rc_config ${name} -: ${varnishncsa_enable:="NO"} -: ${varnishncsa_pidfile:="/var/run/${name}.pid"} -: ${varnishncsa_file:="/var/log/${name}.log"} -: ${varnishncsa_flags:="-P ${varnishncsa_pidfile} -D -a -c -w ${varnishncsa_file}"} - -pidfile=${varnishncsa_pidfile} -run_rc_command "$1" |