[CentOS-devel] A couple of test scripts.

Sat Apr 30 05:57:50 UTC 2011
Steve Barnes <steve at echo.id.au>

G'day

Attached are a couple of simple test scripts that I hope can be put to good use.

The first performs a LAMP install - checking the return value from yum as a sign of success/failure.

The second attempts to fire up httpd and mysqld and then confirm they're both in the process list. It also performs a simple PHP script check.

If these scripts are deficient in some way, please let me know. If there's an obvious flaw in how I'm doing something, please let me know.

The first script is the same one I posted to #centos-devel IRC with a minor aesthetic update to the screen logging. Based on that initial effort I figured it would be useful to follow up with a
daemon startup test script.

More to follow.

Cheers

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1_lamp_check.sh
Type: application/octet-stream
Size: 1419 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20110430/05980662/attachment-0014.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0_lamp_install.sh
Type: application/octet-stream
Size: 769 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20110430/05980662/attachment-0015.obj>