Bug#606959: logrotate script should set correct owner/group

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Dec 13 14:26:20 UTC 2010


On Mon, Dec 13, 2010 at 12:33:51PM +0100, Laurent Bigonville wrote:
> Package: asterisk
> Severity: serious
> Version: 1:1.6.2.9-2
> 
> Hi,
> 
> It looks like the logrotate script is not setting owner/group on the
> log files.
> 
> This causes nothing to be logged at all and/or prevent the daemon from
> restarting.

Sorry, but  I fail to see no problem here.

The directory /var/log/asterisk is owned by asterisk (permissions set in
postinst script).

After log rotation, asterisk is ordered 'logger reload', which reopens
log files (and generating new ones if needed).

Could you please give more details on how to reproduce the problem?

If you want to force creating some log file entries for testing, try:

  asterisk -rx 'module unload cdr_sqlite.so'
  asterisk -rx 'module load cdr_sqlite.so'

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir





More information about the Pkg-voip-maintainers mailing list