summaryrefslogtreecommitdiffstats
path: root/compass/deploy/ansible/roles/monitor/files/check_service.sh
blob: d309673431ddcb8afc79af41082a84e072de8d3c (plain)
1
2
3
4
5
6
7
#!/bin/bash
services=`cat /opt/service | uniq`
for service in $services; do
    if [ `/sbin/initctl list|awk '/stop\/waiting/{print $1}'|uniq | grep $service` ]; then
    	/sbin/start $service
     fi
done