Wener Notes

incron

约 1 分钟阅读
  • ar-/incronGitHubar-/incronar-/incron · C++ · event based background program processing daemon · inotify · /etc/incron.conf · /etc/init · /usr/bin/incrontab笔记:incron
    • C++
    • event based background program processing daemon
  • inotify
  • /etc/incron.conf
  • /etc/init
  • /usr/bin/incrontab
  • /usr/sbin/incrond
  • /etc/incron.d/
    • system tables
bash
apk add incron

# /var/spool/incron/root
EDITOR=nano incrontab -l -u root

service incrond start
rc-update add incrond default
text
/etc/haproxy/haproxy.cfg IN_CLOSE_WRITE,IN_MOVED_TO service haproxy reload --ifstarted
  • MASK - inotify
MASKfor
IN_ACCESS访问文件 (read)
IN_ATTRIB元数据变化 (permissions, timestamps, extended attributes, etc.)
IN_CLOSE_WRITE
IN_CLOSE_NOWRITE
IN_CREATE
IN_DELETE
IN_DELETE_SELF
IN_MODIFY
IN_MOVE_SELF
IN_MOVED_FROM
IN_MOVED_TO
IN_OPEN
---
IN_ALL_EVENTS所有事件
IN_MOVE
IN_CLOSE
symbol
IN_DONT_FOLLOW
IN_ONESHOT
IN_ONLYDIR

关联信息

反向链接、本文链接的其他页面和外部资料。

References

GitHub1 条
最近更新commit 9bcbe04Edit

On this page