From 4577bfeee448e5c7a70bbc268e90af1cfe8d5450 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 3 Nov 2005 13:43:00 +0000 Subject: - Fix for the exilog.sh rc script to make "status" and "restart" command work correctly PR: 87972 Submitted by: Alex Samorukov --- mail/exilog/files/exilog.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'mail/exilog/files') diff --git a/mail/exilog/files/exilog.sh b/mail/exilog/files/exilog.sh index 7cdb69601691..2e35be60ad15 100644 --- a/mail/exilog/files/exilog.sh +++ b/mail/exilog/files/exilog.sh @@ -5,6 +5,8 @@ # 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%% @@ -14,17 +16,10 @@ 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"} -case $1 in - stop) - kill `cat $pidfile` - rm -f $pidfile - ;; - *) - run_rc_command "$1" - ;; -esac +run_rc_command "$1" -- cgit v1.2.3