Debian 中 inotify 使用教程
一 简介与安装
二 命令行快速上手
三 实用脚本示例
四 作为系统服务运行
创建服务文件:/etc/systemd/system/inotify-monitor.service [Unit] Description=Inotify File System Monitor After=network.target
[Service] ExecStart=/usr/bin/inotifywait -m /path/to/dir -e create,delete,modify Restart=always User=nobody Group=nogroup StandardOutput=syslog StandardError=syslog SyslogIdentifier=inotify-monitor
[Install] WantedBy=multi-user.target
启用与启动
提示
五 调优与排错