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