mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-22 02:17:26 +00:00
This commit is contained in:
parent
85e59245fd
commit
c6fa0d23df
@ -76,4 +76,8 @@ restart_service munin-node
|
|||||||
# generate initial statistics so the directory isn't empty
|
# generate initial statistics so the directory isn't empty
|
||||||
# (We get "Pango-WARNING **: error opening config file '/root/.config/pango/pangorc': Permission denied"
|
# (We get "Pango-WARNING **: error opening config file '/root/.config/pango/pangorc': Permission denied"
|
||||||
# if we don't explicitly set the HOME directory when sudo'ing.)
|
# if we don't explicitly set the HOME directory when sudo'ing.)
|
||||||
sudo -H -u munin munin-cron
|
# We check to see if munin-cron is already running, if it is, there is no need to run it simultaneously
|
||||||
|
# generating an error.
|
||||||
|
if [ ! -f /var/run/munin/munin-update.lock ]; then
|
||||||
|
sudo -H -u munin munin-cron
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user