From f7c6adcdefbc034eb157c8bf51c5efcbf7e85aca Mon Sep 17 00:00:00 2001 From: Shlomi Vaknin Date: Sat, 1 Aug 2020 05:14:55 -0700 Subject: [PATCH] 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 Signed-off-by: Khem Raj --- meta-oe/recipes-support/monit/monit/monitrc | 6 ++++++ 1 file changed, 6 insertions(+) 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 #