Multiple report to AIO-SX that SM failed its intialization due to
a SQL failure. The issue had not been reproduced in DEV environment.
This change adds logging, reattempt and collect SM troubleshooting
data when SM fails in such situation.
For potential recovery before pmon start actively monitoring SM,
setting systemd restart=on-failure. Also set RestartSec=10 seconds
in order to give pmon enough time to catch the failure and restart
SM.
Partial-bug: 1915894
Change-Id: I5899e401742510158cd9c59a664b1dc329bb1075
Signed-off-by: Bin Qian <bin.qian@windriver.com>