2015-12-12 125 views
0

我试图让我的MySQL服务器从init自动停止。Ubuntu的自动停止守护进程不会发生

[email protected]:/# update-rc.d mysql defaults 
Adding system startup for /etc/init.d/mysql ... 
    /etc/rc0.d/K20mysql -> ../init.d/mysql 
    /etc/rc1.d/K20mysql -> ../init.d/mysql 
    /etc/rc6.d/K20mysql -> ../init.d/mysql 

因此,rc0,rc1和rc6中的前3个链接用于停止,但不发生。主机是Ubuntu的码头工人,集装箱14.04和init是PID 1

回答

0

对于最近和更新版本的Ubuntu的,看的MySQL 初始化配置文件

/etc/init/mysql.conf 

这两条线是利益

start on runlevel [2345] 
stop on starting rc RUNLEVEL=[016] 
+0

这没有帮助。 – SScast

+0

不客气。 –

+0

有没有其他想法? – SScast