网络管理员的调度程序脚本不再起作用


11

升级到networkmanager 0.9.8后不久,启动时收到以下消息,

调度程序失败:(32)单元dbus-org.freedesktop.nm-dispatcher.service无法加载:没有这样的文件或目录。有关详细信息,请参见系统日志和“ systemctl状态dbus-org.freedesktop.nm-dispatcher.service”。

而且我注意到我所有的调度程序脚本(位于中/etc/NetworkManager/dispatcher.d)都已消失。每个脚本的权限设置为700,由root拥有。

我已经用pkgfile和运行了名称locate,没有输出。

该文件实际上并不存在,那么在哪里可以找到它?


你尝试运行命令:systemctl status dbus-org.freedesktop.nm-dispatcher.service
slm

1
@slm是,错误消息是File Not Found
雏菊

Answers:


11

上游为调度程序添加了单独的服务。尝试运行:

systemctl enable NetworkManager-dispatcher.service

然后

systemctl start NetworkManager-dispatcher.service

既然dbus-org.freedesktop.nm-dispatcher.service是别名,它应该可以正常工作:

systemctl status dbus-org.freedesktop.nm-dispatcher.service
NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service
   Loaded: loaded (/usr/lib/systemd/system/NetworkManager-dispatcher.service; enabled)
   Active: active (running) since Thu 2013-06-13 01:41:21 -0500; 3s ago
 Main PID: 1569 (nm-dispatcher.a)
   CGroup: name=systemd:/system/NetworkManager-dispatcher.service
           └─1569 /usr/lib/networkmanager/nm-dispatcher.action

具有NetworkManager服务启用解决了这个问题,并调度脚本启动工作。启用它将自动启用NetworkManager-dispatcher
3bdalla '19
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.