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>
This commit is contained in:
Shlomi Vaknin
2020-08-01 05:14:55 -07:00
committed by Khem Raj
parent bfb6cf7baa
commit f7c6adcdef
@@ -21,6 +21,12 @@ set daemon 30 # check services at 30 seconds intervals
# # default Monit check immediately after Monit start) # # 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, ## Set syslog logging. If you want to log to a standalone log file instead,
## specify the full path to the log file ## specify the full path to the log file
# #