Skip to content

Commit

Permalink
monit: Set monit files in temporary locations
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
shlomow authored and kraj committed Aug 3, 2020
1 parent bfb6cf7 commit f7c6adc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions meta-oe/recipes-support/monit/monit/monitrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit f7c6adc

Please sign in to comment.