bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_webalizer/0-install_webalizer.sh

Steve Barnes 09d4e5
#!/bin/bash
Steve Barnes 09d4e5
# Author: Athmane Madjoudj <athmanem@gmail.com>
Steve Barnes 09d4e5
Christoph Galuschka 5e4726
t_Log "Running $0 - attempting to install webalizer"
Christoph Galuschka 5e4726
Steve Barnes 09d4e5
t_InstallPackage webalizer 
Athmane Madjoudj 0a3c81
t_InstallPackage httpd
Christoph Galuschka 5e4726
t_ServiceControl httpd stop
Christoph Galuschka 5e4726
ps ax | grep -v grep | grep -q httpd
Christoph Galuschka 5e4726
if [ $? = 0 ]
Christoph Galuschka 5e4726
then
Christoph Galuschka 5e4726
  t_Log "httpd still running - killing"
Christoph Galuschka 5e4726
  killall -9 httpd
Christoph Galuschka 5e4726
fi
Christoph Galuschka 5e4726
sleep 1
Christoph Galuschka 5e4726
t_ServiceControl httpd start
Christoph Galuschka 5e4726