aboutsummaryrefslogtreecommitdiff
path: root/mail/popular/files/pcheckd.in
diff options
context:
space:
mode:
Diffstat (limited to 'mail/popular/files/pcheckd.in')
-rw-r--r--mail/popular/files/pcheckd.in37
1 files changed, 37 insertions, 0 deletions
diff --git a/mail/popular/files/pcheckd.in b/mail/popular/files/pcheckd.in
new file mode 100644
index 000000000000..ab860cc4d5a2
--- /dev/null
+++ b/mail/popular/files/pcheckd.in
@@ -0,0 +1,37 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: pcheckd
+# REQUIRE: NETWORKING SERVERS
+# BEFORE: DAEMON
+# KEYWORD: shutdown
+
+# /etc/rc.conf lines:
+# pcheckd_enable="YES" # enable pcheckd
+# pcheckd_user="pop" # user for pcheckd
+
+. /etc/rc.subr
+
+name="pcheckd"
+rcvar=pcheckd_enable
+
+load_rc_config $name
+
+: ${pcheckd_enable="NO"}
+: ${pcheckd_user="pop"}
+
+command="%%PREFIX%%/sbin/pcheckd"
+start_precmd="${name}_prestart"
+extra_commands="reload"
+
+pproxy_prestart()
+{
+ mkdir -p /var/log/popular
+ chown ${pcheckd_user} /var/log/popular
+ mkdir -p /var/run/popular
+ chown ${pcheckd_user} /var/run/popular
+}
+
+run_rc_command "$1"