From 761a9cf938f5148268109b488a17a85d90068a8a Mon Sep 17 00:00:00 2001 From: Marcel Bischoff Date: Tue, 13 Oct 2015 23:56:00 +0200 Subject: [PATCH] Add LaunchAgent templates --- README.md | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) 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