#!/bin/sh if [ `netstat -lntup|grep nginx|wc -l` -ne 1 ];then systemctl stop keepalived fi