From cfa867bea95463b30b3076ebb456da5cc97cb956 Mon Sep 17 00:00:00 2001 From: Courtney Palit Date: Tue, 19 Apr 2011 14:51:16 -0500 Subject: ddclient: update config and caveats [jn: caveat cleanup, fixups] Closes #5272. Signed-off-by: Jack Nagel --- Library/Formula/ddclient.rb | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'Library/Formula') 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 Label org.ddclient - OnDemand - ProgramArguments #{sbin}/ddclient @@ -80,11 +88,8 @@ EOS RunAtLoad - StartCalendarInterval - - Minute - 0 - + StartInterval + 300 WatchPaths #{etc}/ddclient -- cgit v1.2.3