Skip to content

Instantly share code, notes, and snippets.

@cantremember
Created March 23, 2012 06:03
Show Gist options
  • Save cantremember/2167479 to your computer and use it in GitHub Desktop.
Save cantremember/2167479 to your computer and use it in GitHub Desktop.
logrotate LaunchDaemon
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<false/>
<key>Label</key>
<string>logrotate</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/sbin/logrotate</string>
<string>-f</string>
<string>/etc/logrotate/*.conf</string>
</array>
<key>EnableGlobbing</key>
<true/>
<key>KeepAlive</key>
<false/>
<key>LaunchOnlyOnce</key>
<false/>
<key>RunAtLoad</key>
<false/>
<!--
causes 'Throttling respawn: Will start in 10 seconds' in system.log
<key>OnDemand</key>
<false/>
-->
<!--
http://www.nabble.com/launchd-support-ranges-for-StartCalendarInterval - - td14857719.html
-->
<key>StartCalendarInterval</key>
<!-- 3:05a, 3:05p -->
<array>
<dict>
<key>Hour</key>
<integer>3</integer>
<key>Minute</key>
<integer>05</integer>
</dict>
<dict>
<key>Hour</key>
<integer>15</integer>
<key>Minute</key>
<integer>05</integer>
</dict>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment