[SDC] update configuration template in chef os
[sdc.git] / catalog-fe / src / test / resources / CI / originalResources / scripts / start_apache.sh
1 #!/bin/bash
2
3 service="apache2"
4
5 if (( $(ps -ef | grep -v grep | grep $service | wc -l) > 0 ))
6 then
7   sudo /etc/init.d/$service restart
8 else
9   sudo /etc/init.d/$service start
10 fi