Re: logrotate.d - reload vs restart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 12/27/2010 12:01 PM, Frank Cox wrote:
> Looking at some of the stuff in /etc/logrotate.d, I see entries like this in
> some of the configuration files:
>
> postrotate
> 	/sbin/service privoxy reload  2>  /dev/null || true
>
>> From the commandline, that doesn't work:
>
> # /sbin/service privoxy reload  2>  /dev/null || true
> Usage: /etc/init.d/privoxy {start|stop|restart}
>
> Changing reload to restart does work:
>
> ]# /sbin/service privoxy restart 2>  /dev/null || true
> Stopping Privoxy, OK.
> Starting Privoxy, OK.
>
> I find "reload" in the httpd logrotate file as well:
>
> postrotate
>          /sbin/service httpd reload>  /dev/null 2>/dev/null || true
>
> What am I failing to understand?

You're not failing to understand anything.  The init.d/privoxy script
you have is broken.  While https://bugzilla.redhat.com/show_bug.cgi?id=597732
was reported against a different problem, the corrected initscript it
contains should fix your problem as well.

It might be worthwhile to report a new bug against privoxy since the
failure to do a reload after logrotate is a more serious problem than
the one reported in #597732.

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux