Browse Source

Added dovecot service start/stop/restart

old-stable
gau1991 11 years ago
parent
commit
178725033f
  1. 5
      src/lib/ee_lib_service.sh

5
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 \

Loading…
Cancel
Save