From c31066fea83fbc4665d918263a3d86fa2a72ed1c Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Fri, 29 Jan 2021 17:27:33 +0100 Subject: [PATCH] bundles/mautrix-whatsapp: restart weekly to work around 24/7 connection issues --- bundles/mautrix-whatsapp/metadata.py | 3 +++ nodes/htz/ex42-1048908.py | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bundles/mautrix-whatsapp/metadata.py b/bundles/mautrix-whatsapp/metadata.py index 5b9ecf2..6947941 100644 --- a/bundles/mautrix-whatsapp/metadata.py +++ b/bundles/mautrix-whatsapp/metadata.py @@ -5,6 +5,9 @@ defaults = { 'golang-go': {}, }, }, + 'cron': { + 'restart_mautrix_whatsapp': '0 3 * * 0 root systemctl restart matrix-bridge-whatsapp.service', + }, 'icinga2_api': { 'mautrix-whatsapp': { 'services': { diff --git a/nodes/htz/ex42-1048908.py b/nodes/htz/ex42-1048908.py index 390d08d..6fb0f23 100644 --- a/nodes/htz/ex42-1048908.py +++ b/nodes/htz/ex42-1048908.py @@ -75,8 +75,6 @@ nodes['htz.ex42-1048908'] = { }, }, 'cron': { - # TODO move to a proper bundle - #'restart_mautrix_whatsapp': '0 3 * * * root systemctl restart matrix-bridge-whatsapp.service', 'telekom_nervkram': vault.decrypt('encrypt$gAAAAABfqXi23M96wrSLhqlbhqgePYX06LjPXfyQU2y_07kqYYLztj_PhS1-dk4r5FiiL2Ofmx5iCKW1sZNqiQSuHj2uKaitH0GnwHqj5CI2JwkAS9HrFxw=').format_into('0 0 * * * root date | mail -s \'daily test mail \' -r postmaster@mx0.kunbox.net {}'), }, 'gitea': {