summaryrefslogtreecommitdiff
path: root/mail/exilog/files/exilog.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'mail/exilog/files/exilog.sh.in')
-rw-r--r--mail/exilog/files/exilog.sh.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/mail/exilog/files/exilog.sh.in b/mail/exilog/files/exilog.sh.in
new file mode 100644
index 000000000000..2e35be60ad15
--- /dev/null
+++ b/mail/exilog/files/exilog.sh.in
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# Add the following lines to /etc/rc.conf to enable exilog agent:
+#
+#exilog_enable="YES"
+#
+# also uncomment 'use_pretty_names' => 'no' in exilog.conf file
+
+. %%RC_SUBR%%
+
+name=exilog
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/sbin/exilog_agent.pl
+pidfile=/var/run/exilog.pid
+required_files=%%PREFIX%%/etc/exilog.conf
+command_interpreter=/usr/bin/perl
+
+# read settings, set default values
+load_rc_config $name
+: ${exilog_enable="NO"}
+
+run_rc_command "$1"