/etc/logrotate.d/z-push.lr
-
Hi Forum,
under CentOS 6 there is a Problem.
This Error comes every day:/etc/cron.daily/logrotate: error: z-push.lr:6 unknown option 'su' -- ignoring line error: z-push.lr:6 unexpected text
The Problem is this line in /etc/logrotate.d/z-push.lr
su root z-push
This line not work.
-
Hi yythoss,
we added this line because there was a bug report: https://jira.z-hub.io/browse/ZP-1431. It looks like your logrotate version doesn’t support the su directive, so removing that line should solve your issue (or upgrading to a more recent version).
Manfred
-
It is a original logratote from CentOS 6 and I installed the last updates.
-
@yythoss said in /etc/logrotate.d/z-push.lr:
installed the last updates
The recommendation was not to update Z-Push, but to make an upgrade of Them to version 7.
-
This is not possible at the moment, because an ISDN controller is used, which runs only under CentOS 6.
I think Z-Push must run under CentOS 6 and CentOS 7. -
In that case you should remove line 6 from the logrotate configuration. According to a report this is required for RHEL 7 (which has the bigger market share of the two releases at the moment).
-
There is a different repository for CentOS 6 and CentOS 7
-
@yythoss said in /etc/logrotate.d/z-push.lr:
There is a different repository for CentOS 6 and CentOS 7
Yes, that is true. the “problem” is that we use one spec file for all rpm based distributions, so dealing with this requires a new example logrotate file in the git repo and an exception for rhel 6 in the spec file.
I have created https://jira.z-hub.io/browse/ZP-1452 and already pushed a proposed for for this.
-
The fix is available in the pre-final repository.