# 作者: 丁辉 [Unit] Description=Inotify Service After=network.target [Service] RemainAfterExit=yes ExecStart=/opt/rsync_inotify.sh ExecStop=pkill -f "rsync_inotify.sh" ExecReload=/opt/rsync_inotify.sh && pkill -f "rsync_inotify.sh" Restart=on-abnormal [Install] WantedBy=multi-user.target