1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/mail/exilog/files/exilog.in
John Marino bcbae34226 change command_interpreter from /usr/bin/perl to ${PREFIX}/bin/perl
Several ports had rc.d scripts with hardcoded command_interpreter string
as /usr/bin/perl.  This symlink is not guaranteed to be in place, and it
isn't even an option for perl 5.20.  For affected ports, the interpreter
was changed to localbase.

In one case, the interpreter was correct, but it wasn't surround by
quotes.  Since the rc.d script would break if a space was contained in
${PREFIX}, quotes were added in that case.
2015-01-05 13:18:58 +00:00

30 lines
549 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="%%PREFIX%%/bin/perl"
# read settings, set default values
load_rc_config $name
: ${exilog_enable="NO"}
run_rc_command "$1"