OpenOffice 守护进程问题
我使用 OpenOffice 作为守护进程。有时,当守护进程运行很长时间时,CPU 使用率会非常高,然后 openoffice 就会崩溃。此时,Open Office 应用程序无法运行,也不会生成文档。
出现此问题时如何自动重新启动openoffice守护进程?有什么方法可以监视服务或编写看门狗来处理它吗?
预先感谢,问候。
I'm using OpenOffice as a daemon. Sometimes, when the daemon is running a long time, CPU use spikes very high and then openoffice crash. At this point, the open office applicattion don't work and the documents don't be generated.
How can I restart automatically the openoffice daemon when this problem happens? Is there any way to monitor the service or to program a watchdog to handle it?
Thanks in advance, regards.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能希望使用您的发行版的服务机制;例如,Ubuntu 和 Fedora 使用 upstart。为您的服务编写新贵配置文件可能不会太困难。
如果您的发行版不使用 upstart,您可以直接从
/etc/inittab
运行它或使用 daemontools 来监控您的服务。 (linux-ha项目也有一些服务监控工具,但可能有更多设置-要求超出您的兴趣。)You may wish to use your distribution's services mechanism; Ubuntu and Fedora, for example, use upstart. Writing an upstart configuration file for your service probably wouldn't be too difficult.
If your distribution doesn't use upstart, you could either run it directly out of your
/etc/inittab
or use daemontools to monitor your service. (The linux-ha project also has some service monitoring tools, but may have more setup-requirements than you're interested in.)