pgrep -x nginx &> /dev/null
if [ $? -ne 0 ];then
/etc/init.d/nginx start
fi
pgrep -x sshd &> /dev/null
if [ $? -ne 0 ];then
/usr/sbin/sshd -D &
fi
pgrep -x nginx &> /dev/null
if [ $? -ne 0 ];then
/etc/init.d/nginx start
fi
pgrep -x sshd &> /dev/null
if [ $? -ne 0 ];then
/usr/sbin/sshd -D &
fi
您的IP:
评论 (0)