#!/bin/bash # 重启文件监控器 # ============================================ # 停止当前监控 ./stop-watcher.sh # 等待一秒 sleep 1 # 启动新监控 ./start-watcher.sh # 显示状态 ./status-watcher.sh