xiaomi-sa / frigga Goto Github PK
View Code? Open in Web Editor NEW类似python supervisor的进程管理工具
类似python supervisor的进程管理工具
通过浏览器链接http://localhost:9901
端口应该是9001吧
hi
想咨询下关于工具配置文件
启动时有报错
Sending 'load' command with action 'leave'
The following tasks were affected:
frigga
Start process[/backup1/fzheng/frigga/gods/apache.god] failed!
Command: god status
frigga[29053]: running (2013-12-30 15:44:04)
我估计是我的apache.god有错
文件内容
God.watch do |w|
w.name = "apache"
w.start = "/backup/fzheng/httpd/bin/apachectl start"
w.stop = "/backup/fzheng/httpd/bin/apachectl stop"
w.restart = "/backup/fzheng/httpd/bin/apachectl restart"
w.interval = 30.seconds
w.start_grace = 10.seconds
w.restart_grace = 10.seconds
w.pid_file = "/backup/fzheng/httpd/logs/httpd.pid"
w.:clean_pid_file)
w.start_if do |start|
start.condition(:process_running) do |c|
c.interval = 5.seconds
c.running = false
end
end
w.lifecycle do |on|
on.condition(:flapping) do |c|
c.to_state = [:start, :restart]
c.times = 5
c.within = 5.minute
c.transition = :unmonitored
c.retry_in = 10.minutes
c.retry_times = 5
c.retry_within = 2.hours
end
end
end
不知道是什么地方有错误,请帮忙查看下,谢谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.