Added launchd plist for dns
This commit is contained in:
parent
50468cde8b
commit
92bc844a10
@ -28,9 +28,9 @@ launchctl list | grep restic
|
||||
<string>source /Users/noahheague/.zshrc ; /Users/noahheague/.config/scripts/cron/backup-server.sh</string>
|
||||
</array>
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/noahheague/restic-err.txt</string>
|
||||
<string>/Users/noahheague/launchd/restic-err.txt</string>
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/noahheague/restic-out.txt</string>
|
||||
<string>/Users/noahheague/launchd/restic-out.txt</string>
|
||||
<key>StartCalendarInterval</key>
|
||||
<array>
|
||||
<dict>
|
||||
@ -45,3 +45,36 @@ launchctl list | grep restic
|
||||
</dict>
|
||||
</plist>
|
||||
```
|
||||
|
||||
## DNS launchd configuaration
|
||||
|
||||
```sh
|
||||
launchctl remove launchd.dns # If it's already running
|
||||
launchctl load -w ~/Library/LaunchAgents/launchd.dns.plist
|
||||
launchctl list | grep dns
|
||||
```
|
||||
|
||||
```plist
|
||||
<?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>launchd.dns</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/bin/zsh</string>
|
||||
<string>-c</string>
|
||||
<string>source /Users/noahheague/.zshrc ; /Users/noahheague/.config/scripts/cron/dns.sh</string>
|
||||
</array>
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/noahheague/launchd/dns-err.txt</string>
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/noahheague/launchd/dns-out.txt</string>
|
||||
<key>StartInterval</key>
|
||||
<integer>900</integer>
|
||||
<key>UserName</key>
|
||||
<string>noahheague</string>
|
||||
</dict>
|
||||
</plist>
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user