我正在设置Debian 7.6服务器 . 我已经安装了一个etherpad(etherpad-lite)并将它放在一个nginx web服务器后面 . etherpad使用mySQL . 这一切都按预期工作 .

现在我希望etherpad作为服务运行 . 所以我已经完成了本教程的内容:

https://www.rosehosting.com/blog/install-etherpad-lite-on-debian-wheezy/

我把代码放在一个名为的脚本中:

/etc/init.d/etherpad

并相应地改变了路径 . 这有效!我可以使用启动和停止以太网

service etherpad start
service etherpad stop

现在我想要在启动时启动它 . 我把符号链接放到rcx.d文件夹中:

/etc/rc1.d/K01etherpad -> ../init.d/etherpad
/etc/rc2.d/S19etherpad -> ../init.d/etherpad
/etc/rc3.d/S19etherpad -> ../init.d/etherpad
/etc/rc4.d/S19etherpad -> ../init.d/etherpad
/etc/rc6.d/K01etherpad -> ../init.d/etherpad

Etherpad所需的MySQL与S19mysql一样启动 . 在etherpad init脚本中,我添加了依赖项:

# Required-Start: $local_fs $remote_fs $network $mysql $nginx

但是重启后服务没有启动 . 我仍然需要手动启动它(这有效!) . 我在日志文件dmesg或etherpad日志中找不到任何输出 .

有什么建议如何在这里找到问题?我需要查看哪些日志文件?尽管脚本有效,但服务未启动可能会出现什么问题?

我试图使用更高的数字作为起始顺序,如S24etherpad .

谢谢!