From 55e0fcb5dee50afe68a0e829ab1333483e6c231f Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Thu, 4 Apr 2024 14:48:56 +0200 Subject: [PATCH] Update v-clean-garbage: restart exim4 --- bin/v-clean-garbage | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/v-clean-garbage b/bin/v-clean-garbage index 80d7f1654..4cfc1f336 100644 --- a/bin/v-clean-garbage +++ b/bin/v-clean-garbage @@ -97,6 +97,12 @@ if [ -f "/usr/local/bin/tailf_exim.php" ]; then nohup php /usr/local/bin/tailf_exim.php > /var/log/tailf_exim.log 2>&1 & fi +exim_installed=$(/usr/local/vesta/bin/v-list-sys-services | grep -c 'exim') +if [ $exim_installed -gt 0 ]; then + systemctl restart exim4 +fi + + #----------------------------------------------------------# # Vesta # #----------------------------------------------------------#