在系统关闭过程中,因为其使用的文件系统被 systemd 意外卸载,一个服务无法完全关闭
Issue
- 在系统关闭过程中,一个自定义服务或第三方服务(通常是需要一定时间进行关闭的数据库)会因为它所使用的文件系统被卸载而被突然关闭,
- 服务属性,如
RequiresMountsFor=</mountpoint>
或After=<mount-point>.mount
和Requires=<mount-point>.mount
属性,在服务单元中正确定义
Environment
- Red Hat Enterprise Linux 7 及更新的版本
- systemd
- 安装了多路径(即使未使用)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.