aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/monitor/files/check_service.sh
blob: 0138100cb4700132a94f41df1a6a89a91cb71e36 (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