diff --git a/README.md b/README.md index cfc2e9a..5045cea 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ If you want to contribute, you are highly encouraged to do so. Please read the [ - [FileVault](#filevault) - [Information/Reports](#information-reports) - [Kernel Extensions](#kernel-extensions) + - [LaunchAgents](#launchagents) - [Memory Management](#memory-management) - [Notification Center](#notification-center) - [QuickLook](#quicklook) @@ -549,6 +550,79 @@ sudo kextload -b com.apple.driver.ExampleBundle sudo kextunload -b com.apple.driver.ExampleBundle ``` +### LaunchAgents + +#### Periodical Job Template +Run job all 300 seconds. +```xml + + + + + Label + com.example.touchsomefile + ProgramArguments + + touch + /tmp/helloworld + + StartInterval + 300 + + +``` + +#### Periodical via Calendar Interval Job Template +```xml + + + + + Label + com.example.touchsomefile + ProgramArguments + + touch + /tmp/helloworld + + StartCalendarInterval + + Minute + 45 + Hour + 13 + Day + 7 + + + +``` + +#### Monitoring Directory Job Template +```xml + + + + + Label + com.example.watchhostconfig + ProgramArguments + + syslog + -s + -l + notice + somebody touched /etc/hostconfig + + WatchPaths + + /etc/hostconfig + + + +``` + + ### Memory Management #### Purge memory cache