aboutsummaryrefslogtreecommitdiffstats
path: root/config/dansguardian/dansguardian_rc.template
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2012-03-29 01:47:09 -0300
committermarcelloc <marcellocoutinho@gmail.com>2012-03-29 01:47:09 -0300
commit9aa6eaffa5d72af60e15948566d00031af6ae155 (patch)
tree1d12b814ea192721c139f50830f37c446cbe56b1 /config/dansguardian/dansguardian_rc.template
parentd5af3d19bbadeda6ba50737298c879b6f608781e (diff)
downloadpfsense-packages-9aa6eaffa5d72af60e15948566d00031af6ae155.tar.gz
pfsense-packages-9aa6eaffa5d72af60e15948566d00031af6ae155.tar.bz2
pfsense-packages-9aa6eaffa5d72af60e15948566d00031af6ae155.zip
dansguardian - bug fixes
haproxy - update to version 1.4.20-stable
Diffstat (limited to 'config/dansguardian/dansguardian_rc.template')
-rwxr-xr-xconfig/dansguardian/dansguardian_rc.template35
1 files changed, 35 insertions, 0 deletions
diff --git a/config/dansguardian/dansguardian_rc.template b/config/dansguardian/dansguardian_rc.template
new file mode 100755
index 00000000..580fb835
--- /dev/null
+++ b/config/dansguardian/dansguardian_rc.template
@@ -0,0 +1,35 @@
+#!/bin/sh
+# $FreeBSD: ports/www/dansguardian-devel/files/dansguardian.in,v 1.6 2012/01/14 08:57:12 dougb Exp $
+
+# PROVIDE: dansguardian
+# REQUIRE: NETWORKING SERVERS squid
+# KEYWORD: shutdown
+
+# Define these dansguardian_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+# /etc/rc.conf.d/dansguardian
+#
+# DO YEST CHANGE THESE DEFAULT VALUES HERE
+#
+# dansguardian_enable="YES"
+# dansguardian_flags="<set as needed>"
+sysctl kern.ipc.somaxconn=16384
+sysctl kern.maxfiles=131072
+sysctl kern.maxfilesperproc=104856
+sysctl kern.threads.max_threads_per_proc=4096
+
+dansguardian_enable=${dansguardian_enable:-"YES"}
+dansguardian_pidfile=${dansguardian_pidfile:-"/var/run/dansguardian.pid"}
+
+. /etc/rc.subr
+
+name="dansguardian"
+rcvar=dansguardian_enable
+command="/usr/local/sbin/${name}"
+
+load_rc_config $name
+
+pidfile="${dansguardian_pidfile}"
+
+run_rc_command "$1"