aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ddclient.rb
diff options
context:
space:
mode:
authorCourtney Palit2011-04-19 14:51:16 -0500
committerJack Nagel2011-12-29 14:53:01 -0600
commitcfa867bea95463b30b3076ebb456da5cc97cb956 (patch)
tree5d5d16d9ec608b5fd5edf95a747bc62e208b32cf /Library/Formula/ddclient.rb
parentcd6ea188960af8941197a45d01690221365d2495 (diff)
downloadhomebrew-cfa867bea95463b30b3076ebb456da5cc97cb956.tar.bz2
ddclient: update config and caveats
[jn: caveat cleanup, fixups] Closes #5272. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/ddclient.rb')
-rw-r--r--Library/Formula/ddclient.rb29
1 files changed, 17 insertions, 12 deletions
diff --git a/Library/Formula/ddclient.rb b/Library/Formula/ddclient.rb
index f10ba325a..6f42da4aa 100644
--- a/Library/Formula/ddclient.rb
+++ b/Library/Formula/ddclient.rb
@@ -46,19 +46,29 @@ class Ddclient < Formula
def caveats; <<-EOS
For ddclient to work, you will need to do the following:
-1) Create configuration file in #{etc}/ddclient, sample
- configuration can be found in #{share}/doc/ddclient
+1) Create configuration file in #{etc}/ddclient, a sample
+ configuration can be found in #{HOMEBREW_PREFIX}/share/doc/ddclient.
+
+ Note: don't enable daemon mode in the configuration file; see
+ additional information below.
2) Install the launchd item in /Library/LaunchDaemons, like so:
- sudo cp -vf #{prefix}/org.ddclient.plist /Library/LaunchDaemons/.
+ sudo cp -vf #{prefix}/org.ddclient.plist /Library/LaunchDaemons/
sudo chown -v root:wheel /Library/LaunchDaemons/org.ddclient.plist
3) Start the daemon using:
- sudo launchctl load /Library/LaunchDaemons/org.ddclient.plist
+ sudo launchctl load /Library/LaunchDaemons/org.ddclient.plist
+
+The next reboot of the system will automatically start ddclient.
-Next boot of system will automatically start ddclient.
+You can adjust the execution interval by changing the value of
+StartInterval (in seconds) in /Library/LaunchDaemons/org.ddclient.plist,
+and then
+
+ sudo launchctl unload /Library/LaunchDaemons/org.ddclient.plist
+ sudo launchctl load /Library/LaunchDaemons/org.ddclient.plist
EOS
end
@@ -70,8 +80,6 @@ EOS
<dict>
<key>Label</key>
<string>org.ddclient</string>
- <key>OnDemand</key>
- <true/>
<key>ProgramArguments</key>
<array>
<string>#{sbin}/ddclient</string>
@@ -80,11 +88,8 @@ EOS
</array>
<key>RunAtLoad</key>
<true/>
- <key>StartCalendarInterval</key>
- <dict>
- <key>Minute</key>
- <integer>0</integer>
- </dict>
+ <key>StartInterval</key>
+ <integer>300</integer>
<key>WatchPaths</key>
<array>
<string>#{etc}/ddclient</string>