From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Oct 25 08:20:31 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 267FC16A41F for ; Tue, 25 Oct 2005 08:20:31 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E466943D49 for ; Tue, 25 Oct 2005 08:20:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9P8KUTs051888 for ; Tue, 25 Oct 2005 08:20:30 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9P8KUQ3051887; Tue, 25 Oct 2005 08:20:30 GMT (envelope-from gnats) Date: Tue, 25 Oct 2005 08:20:30 GMT Message-Id: <200510250820.j9P8KUQ3051887@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Alex Samorukov Cc: Subject: Re: ports/87972: ports [mail/exilog] - fix for the exilog.sh rc script to make "status" and "restart" command work correctly X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alex Samorukov List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2005 08:20:31 -0000 The following reply was made to PR ports/87972; it has been noted by GNATS. From: Alex Samorukov To: bug-followup@FreeBSD.org, samm@os2.kiev.ua Cc: Subject: Re: ports/87972: ports [mail/exilog] - fix for the exilog.sh rc script to make "status" and "restart" command work correctly Date: Tue, 25 Oct 2005 11:19:20 +0300 After this patch we dont need special action for the "stop" command, so here is a corrected diff: --- exilog.sh.ori Tue Oct 25 10:53:50 2005 +++ exilog.sh Tue Oct 25 11:11:36 2005 @@ -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 @@ 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"