File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1616 - workdir : " /etc/nvidia-mig-manager"
1717 command : " /bin/bash"
1818 args : ["-x", "-c", "source hooks.sh; apply-exit"]
19+ - workdir : " /etc/nvidia-mig-manager"
20+ command : " /bin/bash"
21+ args : ["-x", "-c", "source hooks.sh; cdi-refresh"]
Original file line number Diff line number Diff line change @@ -122,3 +122,13 @@ function stop_k8s_pods() {
122122 fi
123123 return 0
124124}
125+
126+ cdi-refresh () {
127+ # Check if nvidia-cdi-refresh.service exists
128+ if systemctl list-unit-files nvidia-cdi-refresh.service --quiet; then
129+ echo " Found nvidia-cdi-refresh.service, calling systemctl..."
130+ if ! systemctl start nvidia-cdi-refresh.service; then
131+ echo " Error: Failed to start nvidia-cdi-refresh.service" >&2
132+ fi
133+ fi
134+ }
You can’t perform that action at this time.
0 commit comments