0
我做了這個簡單的小腳本來嘗試和目錄內重新啓動所有服務中的所有服務bash腳本:試圖做出重新啓動某個目錄
#!/bin/bash systemctl daemon-reload for service in /etc/systemd/system/multi-user.target.wants/* do systemctl restart $service done;
當我試圖運行此我得到的以下錯誤:
Failed to restart etc-systemd-system-multi\x2duser.target.wants-openvswitch.service.mount: Unit etc-systemd-system-multi\x2duser.target.wants-openvswitch.service.mount failed to load: No such file or directory
感謝您的快速反應! –