monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auto-reload of configuration files


From: Lutz Mader
Subject: Re: Auto-reload of configuration files
Date: Sun, 17 May 2020 16:53:42 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:60.0) Gecko/20100101 Thunderbird/60.4.0

Hello Eric,
you can use monit to monitor the config folder.

> One option that we've tested is to have a separate process (or wrapper)
> that runs inotify on the configuration files, and sends SIGHUP to monit if
> a change is detected.  This works, but it seems a shame to add a separate
> monitor for monit.

All the time a config file will added or removed the timestamp of the
folder will change. If you find out the folder was changed you can check
the config and if the test was passed you can reload the config.

Monit is used to monitor monit, but this is an easy way to reload the
config after some changes. From my point of view.

With regards,
Lutz



reply via email to

[Prev in Thread] Current Thread [Next in Thread]