On Wed, May 18, 2011 at 12:10 PM, MERIGHI Marcus <mcmer-open...@tor.at> wrote:
> hello,
>
> the attached and inlined diff adds daemon_flags to the local
> rc_stop() and rc_reload(); this is important in case you specify a
> different config file via -f.
>
> Index: pkg/squid.rc
> ===================================================================
> RCS file: /cvs/ports/www/squid/pkg/squid.rc,v
> retrieving revision 1.4
> diff -u -r1.4 squid.rc
> --- pkg/squid.rc        27 Dec 2010 14:50:24 -0000      1.4
> +++ pkg/squid.rc        18 May 2011 10:04:45 -0000
> @@ -7,11 +7,11 @@
>  . /etc/rc.d/rc.subr
>
>  rc_stop() {
> -       ${daemon} -k shutdown
> +       ${daemon} ${daemon_flags} -k shutdown
>  }
>
>  rc_reload() {
> -       ${daemon} -k reconfigure
> +       ${daemon} ${daemon_flags} -k reconfigure
>  }
>
>  rc_cmd $1

looks ok to me.

Antoine?

Reply via email to