Add a configuration to delay start xcvrd for fast-reboot (#5643)

This commit is contained in:
Junchao-Mellanox 2020-12-03 03:28:18 +08:00 committed by GitHub
parent 61419f5468
commit 68464381bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,6 @@
{
"skip_ledd": true,
"skip_fancontrol": true
"skip_fancontrol": true,
"delay_xcvrd": true
}

View File

@ -79,7 +79,11 @@ dependent_startup_wait_for=start:exited
{% if not skip_xcvrd %}
[program:xcvrd]
{% if delay_xcvrd %}
command=bash -c "sleep 30 && /usr/local/bin/xcvrd"
{% else %}
command=/usr/local/bin/xcvrd
{% endif %}
priority=6
autostart=false
autorestart=false