On Tue, 27 Sep 2005, Adam Conrad wrote: > Not sure how the exit code of "status" would ever be meaningful without > also looking at the output, as lynx may have succeeded, but the status > page could be telling you that your webserver's on fire. The whole > point of "status" is the output, as far as I'm concerned.
Well, I'm writing a tool for automated server management (http://reductivelabs.com/projects/puppet), and it needs some way to automatically discern whether a service is currently running. Normally the init script's status command would be sufficient, but since that is lacking, well, I was hoping I could use apache2ctl. So, is there a "right" way to automatically figure out whether Apache2 is running on Debian? -- You will notice that BeOS has taken the best parts from all the major operating systems and made them its own. We've got the power of the Unix command line, the ease of use of the Macintosh interface, and Minesweeper from Windows. -Tyler Riti --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://config.sage.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]