Update service file

Only execute ecc_main when MC sys path exists

Signed-off-by: Medad CChien <ctcchien@nuvoton.com>
Change-Id: Icbad7edeb2e3c6b57a95ced904c3c4ad4b3f2468
diff --git a/phosphor-ecc.service.in b/phosphor-ecc.service.in
index 12a0029..fdcf8ae 100644
--- a/phosphor-ecc.service.in
+++ b/phosphor-ecc.service.in
@@ -2,6 +2,7 @@
 Description=phosphor ECC dbus
 Wants=phosphor-dbus-monitor.service
 After=phosphor-dbus-monitor.service
+ConditionPathExists=|/sys/devices/system/edac/mc/mc0
 
 [Service]
 ExecStart=@bindir@/ecc_main