summaryrefslogtreecommitdiff
path: root/mail/exilog/files/exilog.sh.in
blob: 66b77e3d975601b69d2a01fce5ef4d59e9ca1236 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: exilog
# REQUIRE: %%SERVER%%
# KEYWORD: shutdown
#
# 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

. /etc/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"