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 | |
| parent | bfb6cf7baa7cc9854cee77592e21af35a33a1b4c (diff) | |
| download | meta-openembedded-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>
| -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 | |||
| 21 | # # default Monit check immediately after Monit start) | 21 | # # default Monit check immediately after Monit start) |
| 22 | # | 22 | # |
| 23 | # | 23 | # |
| 24 | |||
| 25 | # set monit files in temporary locations | ||
| 26 | set pidfile /var/run/.monit.pid | ||
| 27 | set statefile /var/run/.monit.state | ||
| 28 | set idfile /var/run/.monit.id | ||
| 29 | |||
| 24 | ## Set syslog logging. If you want to log to a standalone log file instead, | 30 | ## Set syslog logging. If you want to log to a standalone log file instead, |
| 25 | ## specify the full path to the log file | 31 | ## specify the full path to the log file |
| 26 | # | 32 | # |
