[PCP-130] Add pxp-agent log rotation for Solaris 10 and 11 Created: 2015/10/26  Updated: 2020/07/07

Status: Ready for Engineering
Project: Puppet Communications Protocol
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: Geoff Nichols Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: logrotate, service, solaris
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to PCP-840 pxp-agent logs grow unbounded on AIX Open
relates to PCP-6 Rotate pxp-agent log files on *nix Closed
Template:
Story Points: 3

 Description   

It looks like /etc/logadm.conf entries can be managed via `logadm` commands.

To add an /etc/logadm.conf entry:

logadm -w /var/log/puppetlabs/pxp-agent/pxp-agent.log -C 30 -p 1d -a 'pkill -USR2 pxp-agent; true'

To remove an /etc/logadm.conf entry:

logadm -r /var/log/puppetlabs/pxp-agent/pxp-agent.log

There may be some prerequisite Vanagon work needed for this.



 Comments   
Comment by Alessandro Parisi [ 2016/02/24 ]

Any plans for scheduling this task after Burnside Geoff Nichols?

Generated at Fri Aug 07 08:27:12 PDT 2020 using Jira 8.5.2#805002-sha1:a66f9354b9e12ac788984e5d84669c903a370049.