Skip to content

Instantly share code, notes, and snippets.

@arekdreyer
Created September 14, 2018 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arekdreyer/53ee9af9605c31e73d231910e1b3c46c to your computer and use it in GitHub Desktop.
Save arekdreyer/53ee9af9605c31e73d231910e1b3c46c to your computer and use it in GitHub Desktop.
Watches for /var/db/.AppleDiagnosticsSetupDone creation and updates
<?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>Label</key>
<string>com.arekdreyer.AppleDiagnosticsSetupDoneWatcher</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/logger</string>
<string>"/var/db/.AppleDiagnosticsSetupDone was created/modified."</string>
</array>
<key>WatchPaths</key>
<array>
<string>/var/db/.AppleDiagnosticsSetupDone</string>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment