[syncd.sh] 'sxdkernel start' => 'sxdkernel restart' (#11718)

Change `sxdkernel start` to `sxdkernel restart`. If `syncd` service crashes in `ExecStartPre` systemd will not call `ExecStop` and thus will not call `sxdkernel stop`. Use of `sxdkernel restart` is more robust in terms of guarantees to restore the system after unexpected crashes.

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
This commit is contained in:
Stepan Blyshchak 2022-08-15 23:35:34 +03:00 committed by GitHub
parent 027bc7f044
commit a66941a6ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ function startplatform() {
debug "Starting Firmware update procedure" debug "Starting Firmware update procedure"
/usr/bin/mst start --with_i2cdev /usr/bin/mst start --with_i2cdev
/usr/bin/mlnx-fw-upgrade.sh /usr/bin/mlnx-fw-upgrade.sh
/etc/init.d/sxdkernel start /etc/init.d/sxdkernel restart
debug "Firmware update procedure ended" debug "Firmware update procedure ended"
fi fi