Automatic services reload (inotify)
Posted: Thu Nov 15, 2007 3:58 pm
gat3way has developed a small package called iconf, version "pre-alpha" 
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:
By using iconf services/daemons are automatically reloaded on every modification of their configuration files.
(Have you ever forgotten to execute lilo
)
Download link: iconf v0.1
Configuration file sample:
/etc/iconf/general
and run /usr/local/bin/iconf 
PS: Put this line:
in one of your config files in order to have iconf daemon reloaded when its config files has been changed

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