如果 /etc/fstab 中的 x-systemd.automount 条目被修改,我如何让 systemd 重新解析这些条目?
我找不到关于如何让 systemd 在不重新启动的情况下重新解析 /etc/fstab 自动挂载的明确文档,因此:
systemctl daemon-reload将重新生成 /run/systemd/generator 中的单元文件,但不会启动新的自动挂载或停止从 fstab 中删除的自动挂载。systemctl start newmount.automount将开始安装。.automount 扩展名是必需的,因为如果未指定扩展名,systemd 会假定为 .service。systemctl stop oldmount.automount将删除 fstab 中不再存在的挂载systemctl reset-failed将阻止之前失败的删除安装出现在状态消息中。| 归档时间: |
|
| 查看次数: |
3531 次 |
| 最近记录: |