Gentoo服务启动时间太长而init系统放弃了

时间:2014-04-11 08:32:20

标签: mysql daemon gentoo init.d

在我的gentoo系统的某些点上,mysqld守护进程会花费太多时间来启动。 当系统启动时,gentoo超时并认为守护程序尚未启动,但它最终会在后台启动。 但是gentoo仍然认为它没有开始。 在这种情况下可以做些什么?

1 个答案:

答案 0 :(得分:0)

查看/etc/conf.d/mysql中的以下值:

# This setting (in seconds) should be high enough to allow InnoDB to do a full
# checkpoint recovery. 900 is the default used in the upstream RPM startup
# scripts. 30 seconds should be sufficent if you just have a tiny <1GiB
# database. After the core startup is done, we wait this long for the UNIX
# socket to appear.
STARTUP_TIMEOUT="900"

# This is how long, in milliseconds, we wait for pidfile to be created, early
# in the startup.
STARTUP_EARLY_TIMEOUT="1000"