1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/mail/exilog/files/exilog.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

30 lines
541 B
Bash

#!/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=exilog_enable
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"