#!/bin/bash # 这里千万不要使用set -e sleep 5 supervisorctl stop sensor_to_local sleep 5 supervisorctl start sensor_to_server