From e7b187a234116c53b0785c7e5e88b975691550ff Mon Sep 17 00:00:00 2001 From: AGT EMS Date: Thu, 19 Jun 2025 11:32:38 +0800 Subject: [PATCH] feat: add start ems service at the end of installation --- extra/wxc2_emsInstall | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/extra/wxc2_emsInstall b/extra/wxc2_emsInstall index 9a08664..e60be68 100644 --- a/extra/wxc2_emsInstall +++ b/extra/wxc2_emsInstall @@ -921,8 +921,16 @@ chgrp -R mysql /var/lib/mysql ############################################################################### # 4. EMS Install Finished -############################################################################### +##############################################################################o myShowTitle "EMS Installation Process is complete" +echo -n "Start EMS service ...." +service omcd restart +if [ $? -ne 0 ] ; then + echo "Failed to start EMS service. Please check the logs in /usr/local/omc/log" + myShowResult "Failed" + exit 1 +fi +myShowResult "OK" exit