diff --git a/conf/cron/mentat-precache-py.cron b/conf/cron/mentat-precache-py.cron index c7bd2144920fb5b44fab32a5da770f5d793e6a31..8af39307f7a1f394c12742b9f2fe131124a2961e 100644 --- a/conf/cron/mentat-precache-py.cron +++ b/conf/cron/mentat-precache-py.cron @@ -10,5 +10,5 @@ # Use of this source is governed by the MIT license, see LICENSE file. # -# Run once in every 10 minutes. -*/10 * * * * mentat /var/mentat/venv/bin/mentat-precache.py --regular +# Run every hour at minute 3. +3 * * * * mentat /var/mentat/venv/bin/mentat-precache.py --regular diff --git a/conf/scripts/maintenance-mode.sh b/conf/scripts/maintenance-mode.sh index d733ef092e763f197bbb51ad73b1740f5721bd43..58d8478389196aabf01efa4298dc1b716fd5a102 100755 --- a/conf/scripts/maintenance-mode.sh +++ b/conf/scripts/maintenance-mode.sh @@ -39,7 +39,6 @@ function maintenance_on() { systemctl restart apache2 mentat-controller.py --command disable mentat-controller.py --command stop - systemctl restart postgresql exit 0 } @@ -53,7 +52,6 @@ function maintenance_off() { echo "#==============================================================================#" echo " Current time: `date --rfc-3339=second`" echo "" - systemctl restart postgresql mentat-controller.py --command start mentat-controller.py --command enable a2dismod substitute