[thelist] apache monitor scripts
evolt at mccullough-net.com
evolt at mccullough-net.com
Wed Nov 10 08:39:14 CST 2004
Yeah something like this.
#!/bin/sh
check=`ps -aef |grep httpd`
if [$check==/usr/local/apache2/bin/httpd]; then
echo 'Apache is running'
fi
however that generates a command not found on the
if [$check==/usr/local/apache2/bin/httpd]; then
line
Quoting Seamus <seamuscawley at gmail.com>:
> What exactly do you mean?
> like this
>
> check=`ps | grep BLA`
> if [$check==BLABLA] then;
> Do Stuff
> fi
>
> not sure of syntax sorry
>
> On Tue, 9 Nov 2004 14:54:16 -0600, evolt at mccullough-net.com
> <evolt at mccullough-net.com> wrote:
> > I'm looking for an example shell script that is written to grep for an
> apache
> > process that is running if it finds it its fine, if not then it restarts
> > apache.
> >
> > any thoughts or has anyone seen one of those in their travels?
> >
> > ----------------------------------------------------------------
> > This message was sent using IMP, the Internet Messaging Program.
> >
> > --
> >
> > * * Please support the community that supports you. * *
> > http://evolt.org/help_support_evolt/
> >
> > For unsubscribe and other options, including the Tip Harvester
> > and archives of thelist go to: http://lists.evolt.org
> > Workers of the Web, evolt !
> >
>
>
> --
> Holiday Apartments in Ireland < http://holidayapartment.f-m.fm >
> Coding World < http://codingworld.proboards27.com >
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the thelist
mailing list