diff options
author | Shlomi Vaknin <shlomi.39sd@gmail.com> | 2020-08-01 05:14:55 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-08-03 00:15:29 -0700 |
commit | f7c6adcdefbc034eb157c8bf51c5efcbf7e85aca (patch) | |
tree | 468fac81ba4696e648d870ffa8b1e27e85880747 /meta-oe/recipes-support/monit | |
parent | bfb6cf7baa7cc9854cee77592e21af35a33a1b4c (diff) | |
download | meta-openembedded-contrib-f7c6adcdefbc034eb157c8bf51c5efcbf7e85aca.tar.gz |
monit: Set monit files in temporary locations
Normally monit create its temporary files in $HOME directory.
In case the rootfs is mounted as read-only, monit will not operate.
This patch set monit configuration to store these files in /var/run
Signed-off-by: Shlomi Vaknin <shlomi.39sd@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/monit')
-rw-r--r-- | meta-oe/recipes-support/monit/monit/monitrc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/monit/monit/monitrc b/meta-oe/recipes-support/monit/monit/monitrc index f8d6a4388f..af7bd2be53 100644 --- a/meta-oe/recipes-support/monit/monit/monitrc +++ b/meta-oe/recipes-support/monit/monit/monitrc @@ -21,6 +21,12 @@ set daemon 30 # check services at 30 seconds intervals # # default Monit check immediately after Monit start) # # + +# set monit files in temporary locations +set pidfile /var/run/.monit.pid +set statefile /var/run/.monit.state +set idfile /var/run/.monit.id + ## Set syslog logging. If you want to log to a standalone log file instead, ## specify the full path to the log file # |