Skip to content

Instantly share code, notes, and snippets.

@znz
Created November 13, 2013 08:59
Show Gist options
  • Save znz/7445900 to your computer and use it in GitHub Desktop.
Save znz/7445900 to your computer and use it in GitHub Desktop.
Mavericks の distnoted がひどいので定期的に killall する

Mavericks の distnoted がひどいので定期的に killall する。

~/Library/LaunchAgents/local.killall.distnoted.plist に置いて launchctl load ~/Library/LaunchAgents/local.killall.distnoted.plist で反映する。

設定を変更したときは

launchctl unload ~/Library/LaunchAgents/local.killall.distnoted.plist
launchctl load ~/Library/LaunchAgents/local.killall.distnoted.plist

で反映する。

StartInterval は秒単位なので 600 だと10分間隔。

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.killall.distnoted</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/killall</string>
<string>distnoted</string>
</array>
<key>StartInterval</key>
<integer>600</integer>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment