Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Sep 2012 16:46:12 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Ryan Steinmetz <zi@FreeBSD.org>
Cc:        svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, Karsten Schmidt <gugge@guggemand.dk>, ports-committers@freebsd.org
Subject:   Re: svn commit: r303734 - head/net-mgmt/pmacct/files
Message-ID:  <504935C4.9090104@FreeBSD.org>
In-Reply-To: <201209060303.q8633mHv048390@svn.freebsd.org>
References:  <201209060303.q8633mHv048390@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Overall this rc.d script looks Ok. My one suggestion is that if -D is
the option to daemonize that it be moved to command_args instead of
relying on the user not to forget to include it if they override _flags.

Doug


On 9/5/2012 8:03 PM, Ryan Steinmetz wrote:
> Author: zi
> Date: Thu Sep  6 03:03:47 2012
> New Revision: 303734
> URL: http://svn.freebsd.org/changeset/ports/303734
> 
> Log:
>   - Fix issues in rc script + pkg-message
>   
>   Submitted by:	Karsten Schmidt <gugge@guggemand.dk>
> 
> Modified:
>   head/net-mgmt/pmacct/files/pkg-message.in
>   head/net-mgmt/pmacct/files/pmacctd.in
> 
> Modified: head/net-mgmt/pmacct/files/pkg-message.in
> ==============================================================================
> --- head/net-mgmt/pmacct/files/pkg-message.in	Thu Sep  6 02:30:30 2012	(r303733)
> +++ head/net-mgmt/pmacct/files/pkg-message.in	Thu Sep  6 03:03:47 2012	(r303734)
> @@ -3,7 +3,7 @@ Please note that this port requires conf
>  
>  Add these to /etc/rc.conf:
>  pmacctd_enable="YES"
> -pmacctd_flags="-DF %%PREFIX%%/etc/pmacctd.conf -i <interface>"
> +pmacctd_flags="-Df %%PREFIX%%/etc/pmacctd.conf -i <interface>"
>  
>  Configuration examples are located in %%EXAMPLESDIR%%.  You must copy
>  one of these to %%PREFIX%%/etc/pmacctd.conf and make any required edits
> 
> Modified: head/net-mgmt/pmacct/files/pmacctd.in
> ==============================================================================
> --- head/net-mgmt/pmacct/files/pmacctd.in	Thu Sep  6 02:30:30 2012	(r303733)
> +++ head/net-mgmt/pmacct/files/pmacctd.in	Thu Sep  6 03:03:47 2012	(r303734)
> @@ -25,7 +25,7 @@
>  name=pmacctd
>  rcvar=pmacctd_enable
>  
> -command=%%PREFIX%%/$name
> +command=%%PREFIX%%/sbin/$name
>  
>  # set defaults
>  
> 


-- 

    I am only one, but I am one.  I cannot do everything, but I can do
    something.  And I will not let what I cannot do interfere with what
    I can do.
			-- Edward Everett Hale, (1822 - 1909)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?504935C4.9090104>