|
|
Beware "Login Items" and Command-line tools
ping and curl tools to check network and website availability.
In March 2003 I did a clean rebuild of my G4 server, moving from 10.1.x to 10.2.x. Well, the StartupItem I wrote to launch the watchdog broke. Instead of bouncing the already-live server to debug the problem, I tried something different -- I used the "Login Items" System Preferences pane to add the perl script. It added just fine. I logged in and out, checked the process listing and there was my watchdog. Golden, or so I thought. This weekend a client's site went down. We found out about it fairly quickly, and I was able to bring it back up remotely in less than a hour. (It turned out The script has been largely unchanged since initial deployment, so unless bitrot got the code, it wasn't a logic issue. I checked the process listing and sure enough, the watchdog was running. But something else caught my eye while Apparently my watchdog spawned After creating and installing a 10.2-happy watchdog StartupItem, all seems right again. But the lesson remains: beware command line tools launched from the "Login Items" System Preferences pane. Monday, May 19, 2003
|
Contact Me Topics RSS Feed Linkblog
Bill Bumgarner Brent Simmons Daniel Jalkut Dave Dribin Eric Albert Eric Rescorla Eric Sink Greg Miller Gus Mueller Jeremy Zawodny John Gruber Mark Dalrymple Michael Tsai Peter Ammon Raymond Chen Ryan Wilcox Scott Stevenson Steven Frank The Daily WTF we hates software Wil Shipley |
Copyright © 1997-2008 Jonathan 'Wolf' Rentzsch. All rights reserved.
Questions? Comments? Contact Me.