Based on inotify kernel feature, it can monitor system files and/or directories for modifications. In case of modification a user defined command is executed.
Configuration files reside in /etc/iconf and have very simple format:
Code: Select all
file_to_be_monitored command_to_be_executed program_parameters(Have you ever forgotten to execute lilo
Download link: iconf v0.1
Configuration file sample:
/etc/iconf/general
Code: Select all
/etc/apache /usr/sbin/apachectl restart
/etc/lilo.conf /sbin/liloPS: Put this line:
Code: Select all
/etc/iconf killall iconf;/usr/local/bin/iconf