Unix 上的应用程序控制脚本
我正在寻找一些软件,允许我控制基于服务器的应用程序,也就是说,有一堆相互依赖的进程,我希望能够以控制器的方式启动、关闭和监视它们。
我遇到过像 Autosys 这样的程序,但它很昂贵,而且远远超出了我想要的范围。 我也见过 AppCtl ,但这似乎无法处理依赖关系。 也许可以重新调整初始化脚本的用途?
哦,更复杂的是,它应该能够在 Solaris 10 或 Linux 机器上运行,而无需安装任何新的二进制文件。 在我最近看到的盒子上,这意味着 shell 脚本和 Perl,但不是 Python。
是否存在这样的程序,或者我是否需要掸掉我的《Programming Perl》副本?
I'm looking for some software that allows me to control a server based application, that is, there are bunch of interdependent processes that I'd like to be able to start up, shut down and monitor in a controller manner.
I've come across programs like Autosys, but that's expensive and very much over the top for what I want. I've also seen AppCtl, but that seems not to handle dependencies. Maybe it would be possible to repurpose the init scripts?
Oh, and as an added complication it should be able to run on a Solaris 10 or Linux box without installing any new binaries. On the boxes I've seen recently, that means shell scripts and Perl but not Python.
Do any such programs exist or do I need to dust off my copy of Programming Perl?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
尝试 GNU 批处理。 看起来它支持你所需要的。
http://www.gnu.org/software/gnubatch/
Try GNU Batch. It looks like it supports what you need.
http://www.gnu.org/software/gnubatch/
据我所知,仅限 Solaris,但 Solaris 10 的 SMF 不会 做你想做的事吗?
Solaris-only as far as I know, but wouldn't Solaris 10's SMF do what you want?
你好,
看看 /etc/init.d 中类似的内容并以此为基础。 另请参阅 crontab 或 at,定期运行。
干杯,
罗布
G'day,
Have a look in /etc/init.d for something similar and use that as a basis. See also crontab, or maybe at, to run on a regular basis.
cheers,
Rob
尝试 Supervise,qmail 使用它来跟踪其服务/启动应用程序:
http:// cr.yp.to/daemontools/supervise.html
Try Supervise, which is what qmail uses to keep track of it's services/startup applications:
http://cr.yp.to/daemontools/supervise.html