Browse Source

Restart Exim

Ernesto Nicolás Carrea 5 years ago
parent
commit
839b64df04

+ 2 - 2
bin/module/clamav/exim-integration/disable.inc

@@ -24,6 +24,6 @@ hestia_module_clamav_exim-integration_disable() {
         /usr/bin/sed -i "/CLAMD/ s/^/#/" $OSAL_PATH_EXIM_CONF/${OSAL_PKG_EXIM}.conf
     fi
     
-
-    # FIXME: how do we rebuild exim.conf? 
+    osal_service_restart $OSAL_SERVICE_EXIM
+    check_result $? "Exim restart failed"
 }

+ 2 - 1
bin/module/clamav/exim-integration/enable.inc

@@ -26,5 +26,6 @@ hestia_module_clamav_exim-integration_enable() {
     gpasswd -a clamav mail > /dev/null 2>&1
     gpasswd -a clamav $OSAL_USER_EXIM > /dev/null 2>&1
 
-    # FIXME: how do we rebuild exim.conf? 
+    osal_service_restart $OSAL_SERVICE_EXIM
+    check_result $? "Exim restart failed"
 }

+ 2 - 1
bin/module/spamassassin/exim-integration/disable.inc

@@ -23,5 +23,6 @@ hestia_module_spamassassin_exim-integration_disable() {
         /usr/bin/sed -i "/SPAMASSASSIN/ s/^/#/" $OSAL_PATH_EXIM_CONF/${OSAL_PKG_EXIM}.conf
     fi
 
-    # FIXME: how do we rebuild exim.conf? 
+    osal_service_restart $OSAL_SERVICE_EXIM
+    check_result $? "Exim restart failed"
 }

+ 2 - 1
bin/module/spamassassin/exim-integration/enable.inc

@@ -23,5 +23,6 @@ hestia_module_spamassassin_exim-integration_enable() {
         /usr/bin/sed -i "/SPAMASSASSIN/ s/#*//" $OSAL_PATH_EXIM_CONF/${OSAL_PKG_EXIM}.conf
     fi
 
-    # FIXME: how do we rebuild exim.conf? 
+    osal_service_restart $OSAL_SERVICE_EXIM
+    check_result $? "Exim restart failed"
 }