From 178725033fe31686d5539daf342c7f2c15a4dfb3 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Mon, 28 Jul 2014 18:05:29 +0530 Subject: [PATCH] Added dovecot service start/stop/restart --- src/lib/ee_lib_service.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/ee_lib_service.sh b/src/lib/ee_lib_service.sh index 70efefe7..6bafda2d 100644 --- a/src/lib/ee_lib_service.sh +++ b/src/lib/ee_lib_service.sh @@ -28,6 +28,11 @@ function ee_lib_service() $ee_service_name -t &>> $EE_COMMAND_LOG \ && service $ee_service_name ${@: -1} &>> $EE_COMMAND_LOG\ || ee_lib_error "Unable to execute service $ee_service_name ${@: -1}, exit status = " $? + elif [ $ee_service_name = "dovecot" ]; then + # Test and start/stop/restart/reload php5-fpm service + $ee_service_name -n &>> $EE_COMMAND_LOG \ + && service $ee_service_name ${@: -1} &>> $EE_COMMAND_LOG\ + || ee_lib_error "Unable to execute service $ee_service_name ${@: -1}, exit status = " $? else # start/stop/restart/reload services service $ee_service_name ${@: -1} &>> $EE_COMMAND_LOG \