Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged changes made outside of Github #13

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

plecos
Copy link
Owner

@plecos plecos commented Jan 13, 2017

Changes made outside of Github but referenced in threads on SoureForge have been merged here.

Copy link

@dhoer dhoer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall. Just a few minor tweaks needed.

<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration>
<?xml version="1.0"?>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this file has invalid chars introduced into it.


Release Notes:

0.0.0.17- 13 Jan 2017 (beta) - merge changes from Github contributors
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this stay in beta?

@plecos
Copy link
Owner Author

plecos commented Jan 16, 2017 via email

@dhoer
Copy link

dhoer commented Jan 17, 2017

I sent you an email. Question: have you thought about building, unit and integration testing this with appveyor?

@plecos
Copy link
Owner Author

plecos commented Jan 17, 2017

Got your email and sent a reply. As to your question, I'm not familiar with appveyor.

@dhoer
Copy link

dhoer commented Jan 17, 2017

Thanks. https://www.appveyor.com/ is a windows continuous integration tool that is free to opensource projects. You check-in a appveyor.yml that describes the steps to build and test your code: https://www.appveyor.com/docs/build-configuration/.

@dhoer
Copy link

dhoer commented Jan 23, 2017

I'm having issues with comments. Logrotatewin sucks up the next uncommented line as part of the comment and throws Unknown directive error at the end, e.g.,

# my comment

c:\test.log {
  ...
}

Would result in the following output:

...
logrotate: read line # my comment c:\test.log {
logrotate: Skipping comment
...
logrotate: Unknown directive }

Let me know if you would like this written up as another issue.

@plecos
Copy link
Owner Author

plecos commented Jan 23, 2017

Yes please so I can track it better.

@dhoer
Copy link

dhoer commented Jan 23, 2017

Done: Comments in conf causes Unknown directive error #14

@dhoer
Copy link

dhoer commented Jan 23, 2017

On windows is SCHTASKS the best way to run logrotate periodically?

@plecos
Copy link
Owner Author

plecos commented Jan 23, 2017

Yeah I think so, at this point at least.

@dhoer
Copy link

dhoer commented Jan 26, 2017

I have the chef cookbook close to release. Just need to finish up the readme. Here is an example of using appveyor to lint, unit, and integration test on windows 2012r2: https://ci.appveyor.com/project/dhoer/chef-windows-logrotate

@dhoer
Copy link

dhoer commented Jan 26, 2017

The only other issue I ran into is that when I have the schtask running every hour and I do not set the -s c:/path/to/logrotate.status, it ignores the frequency and will rotate the logs every hour. When I add it, then it works as expected. Let me know if you would like an issue on this as well.

Thanks for getting this out there for me. It is much appreciated!

@dhoer
Copy link

dhoer commented Jan 26, 2017

One more interesting thing to mention. If the following vars are global (at the top), the logrotate will not keep a test.log file after it rotates, but if I have them inside e.g. c:\test.log { }, then it does.

missingok
compress
delaycompress
copytruncate
notifempty

I don't know if this is expected behavior or not.

@dhoer
Copy link

dhoer commented Jan 26, 2017

This cookbook is now released: https://supermarket.chef.io/cookbooks/windows_logrotate

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants