We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 486a47e commit b75712dCopy full SHA for b75712d
roles/vgpu/templates/nvidia-mdev.service.j2
@@ -12,7 +12,9 @@ RestartSec=30
12
Type=oneshot
13
User=root
14
{% if vgpu_definition.mig_devices is not defined %}
15
-# Workaround lack of UpheldBy/RestartMode=direct in systemd<254
+# 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
18
ExecStartPre=/usr/bin/systemctl is-active nvidia-sriov-{{ vgpu_definition.pci_address }}.service
19
{% endif %}
20
ExecStart=-/usr/sbin/mdevctl start --uuid %i
0 commit comments