Systemd设置服务延迟启动和超时时间
延迟启动
在[Service]
标签下增加ExecStartPre=/bin/sleep 30
,表示延迟30秒启动
超时时间
在[Service]
标签下增加TimeoutStartSec=600
,表示服务启动超时时间为600秒
THE END
0
二维码
海报
Systemd设置服务延迟启动和超时时间
延迟启动
在[Service] 标签下增加ExecStartPre=/bin/sleep 30 ,表示延迟30秒启动
超时时间
在[Service] 标签下增加TimeoutStartSec=600 ,表示服务启动超时时……
文章目录
关闭