我的守望者(incron-like)守护进程有什么问题?
我已经安装了Watcher这样的方式: watcher.py和watcher.ini都位于/etc我也安装了pyinotify ,它在我使用python -m pyinotify -v /var/www 不过,我想使用守护进程,当我启动watcher.py ,我的watcher.py会出现奇怪的行(请参见下文)。 我还包括我的watcher.ini文件。 注意:我有最新版本的Python。 watcher.py可以在这里find 我做了什么错? 另外,我真的需要pyinotify? 非常感谢你的帮助 watcher.ini: [DEFAULT] logfile=/var/log/watcher.log pidfile=/var/run/watcher.pid [job1] watch=/var/www events=create,delete,modify recursive=true command=mkdir /home/mockfolder ## just using this as test watcher.log: 2012-09-22 04:28:23.822029 Daemon started 2012-09-22 04:28:23.822596 job1: /var/www Traceback (most recent call last): File "/etc/watcher.py", line 359, in <module> daemon.start() File "/etc/watcher.py", line […]