Skip to content

Commit b75712d

Browse files
authored
Improve comment
1 parent 486a47e commit b75712d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roles/vgpu/templates/nvidia-mdev.service.j2

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ RestartSec=30
1212
Type=oneshot
1313
User=root
1414
{% if vgpu_definition.mig_devices is not defined %}
15-
# Workaround lack of UpheldBy/RestartMode=direct in systemd<254
15+
# Workaround lack of UpheldBy/RestartMode=direct in systemd<254 to ensure unit is
16+
# started when the dependency fails, see:
17+
# https://unix.stackexchange.com/questions/213185/restarting-systemd-service-on-dependency-failure
1618
ExecStartPre=/usr/bin/systemctl is-active nvidia-sriov-{{ vgpu_definition.pci_address }}.service
1719
{% endif %}
1820
ExecStart=-/usr/sbin/mdevctl start --uuid %i

0 commit comments

Comments
 (0)