freebsd-ports/mail/exilog/files/exilog.sh.in
Pav Lucistnik a7eba11936 - Fix rc script installation
- Stop daemon on deinstall
- REQUIRE/PROVIDE

PR:		ports/97327
Submitted by:	Larry Rosenman <ler@lerctr.org> (maintainer)
2006-05-19 22:50:37 +00:00

29 lines
538 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
. %%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"