X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=nagcollect.git;a=blobdiff_plain;f=contrib%2Fsetup-osx.sh;h=9e8bcc653d5564de7749d18e2b34ff5329f66eb3;hp=98db9284122c35093e236a3502aabcec702eb68a;hb=10329e9eaf11d1c359716bcdee705e265cbfc979;hpb=274da505fdf15d3ec0b2688ac037b4670664fb29 diff --git a/contrib/setup-osx.sh b/contrib/setup-osx.sh index 98db928..9e8bcc6 100755 --- a/contrib/setup-osx.sh +++ b/contrib/setup-osx.sh @@ -1,9 +1,13 @@ #!/bin/sh # # NagCollect -- Nagios Data Collector for Passive Checks -# Copyright (c)2009 Alexander Barton, alex@barton.de +# Copyright (c)2009,2011 Alexander Barton, alex@barton.de # logger -t "setup-osx.sh" -s "starting ..." [ -r /Library/LaunchDaemons/de.barton.nagcollect ] \ && launchctl unload -w /Library/LaunchDaemons/de.barton.nagcollect +rm -f /Library/LaunchDaemons/de.barton.nagcollect +[ -r /Library/LaunchDaemons/de.barton.nagcollect.plist ] \ + && launchctl unload -w /Library/LaunchDaemons/de.barton.nagcollect.plist +rm -f /Library/LaunchDaemons/de.barton.nagcollect.plist logger -t "setup-osx.sh" -s "done."