icinga2/test/jenkins/apache_state.test

11 lines
174 B
Plaintext
Raw Normal View History

2013-12-04 16:33:05 +01:00
#!/bin/sh
2014-02-14 16:05:58 +01:00
sudo service httpd status &> /dev/null
if [ $? -gt 0 ]; then
echo '[FAIL] httpd is not running'
exit 1
else
echo '[OK] httpd is running'
exit 0
fi