linux redhat对于服务的启动超时时间设定
本文参考文章:https://blog.csdn.net/weixin_33713503/article/details/91744743
问题描述:
有时候系统开机或者关机时候会有提示如下信息,并且需要等待很长时间:
[ *** ] A start job is running for /etc/rc.local Compatibili...43s /(no limit)
问题解决:
1、对于这个问题实际上不是完全没法处理,可以通过修改/lib/systemd/system/rc.local.service
vim /lib/systemd/system/rc.local.service
[Unit] Description=/etc/rc.d/rc.local Compatibility ConditionFileIsExecutable=/etc/rc.d/rc.local After=network.target [Service] Type=forking ExecStart=/etc/rc.d/rc.local start TimeoutSec=0 # 单位是秒,0为不限制。 RemainAfterExit=yes SysVStartPriority=99 #添加这个配置
修改完之后就会变成
[ *** ] A start job is running for /etc/rc.local Compatibili...43s /(1min 4s)
需要注意,服务超时后会被killed
相关推荐
farwang 2020-11-25
星愿心愿 2020-11-24
tianhuak 2020-11-24
zhjn0 2020-11-24
昭君出塞 2020-11-23
bluecarrot 2020-11-23
linuxwcj 2020-10-21
以梦为马不负韶华 2020-10-20
彼岸随笔 2020-10-20
yutou0 2020-10-17
applecarelte 2020-10-16
ourtimes 2020-10-16
waterhorse 2020-09-19
MRFENGG 2020-11-11
rainandtear 2020-10-30
kyssfanhui 2020-10-20
liuhangtiant 2020-10-20