nats批量publish最后一条疑似丢失
golang位移操作的一个小坑

go版本的supervisord

妙音 posted @ 2021年11月14日 13:27 in golang with tags supervisord go , 1210 阅读
 

描述

 
python版本的supervisrod, 在linux、windows系统中离线安装都不怎么方便.  是否有go版本的呢?
 

github地址

 
[https://github.com/ochinchina/supervisord/](https://github.com/ochinchina/supervisord/)
 

踩坑记录

 
* 编译32版本, 有些报错, 需要修改源码
 
* 在ui界面快速点击start/stop, 进程可能会启动多个。需要加锁处理处理.
 
## 用法
 
* 配置文件查找顺序
 
$CWD/supervisord.conf
$CWD/etc/supervisord.conf
/etc/supervisord.conf
/etc/supervisor/supervisord.conf (since Supervisor 3.3.0)
../etc/supervisord.conf (Relative to the executable)
../supervisord.conf (Relative to the executable)
 
 
* 最简单配置supervisord.conf
 
[program:test]
command = /your/program args
 
 
* 常用配置
 
[inet_http_server]          ;http接口
port=:9002
;username=xxxx
;password=xxxx

[supervisorctl]             ;ui界面
serverurl=http://127.0.0.1:9002

[supervisord]               ;日志
logfile=%(here)s/../log/supervisord.log
logfileMaxbytes=50MB        ;文件大小
logfileBackups=10           ;10个文件
loglevel=info               ;日志级别

[program:middleware1]       ;进程
command = %(here)s/../middleware1.exe   ;here指的是supervisord.conf的路径,而不是supervisord.exe的路径
autorestart = true
numprocs=1                  ;进程数量

[program:programname1]
command = %(here)s/../programname1.exe
autorestart = true
numprocs=1
depends_on=middleware1      ;依赖进程


[program:programname2]
command = %(here)s/../programname2.exe
autorestart = true
numprocs=1
depends_on=middleware1
 
Avatar_small
sophia 说:
2023年6月19日 00:11 You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant! 인천출장마사지
Avatar_small
sophia 说:
2023年6月19日 00:12

You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant! 인천출장마사지

Avatar_small
sophia 说:
2023年6月26日 15:01

This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog.. agencia seo

Avatar_small
SEO 说:
2023年7月12日 20:24

I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work. 천안출장마사지

Avatar_small
Imamia Quran Academy 说:
2023年7月17日 22:02

The contents of the article are very original. Thanks for the work, may be an inspires for everything. Imamia Online Shia Quran Academy has qualified Online Shia Quran Teachers for both kids and Adults.

Avatar_small
Imamia Quran Academy 说:
2023年7月17日 22:04

Nicely presented information in this post, I prefer to read this kind of stuff. The quality of content is fine and the conclusion is good. Thanks for the post. I am from Imamia Quran Academy. Imamia Online Shia Academy helps to fulfill this religious obligation by providing Online Shia Classes globally to both kids and adults.

Avatar_small
six components of he 说:
2023年8月09日 16:41

I'm bookmarking this blog. Every post is a valuable lesson in itself.

Avatar_small
sophia 说:
2023年8月19日 19:54

I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day! Liga 787

Avatar_small
sophia 说:
2023年8月20日 19:39

I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information. cci large rifle primers

Avatar_small
sophia 说:
2023年8月29日 13:15

I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information. เว็บแทงบอลดีที่สุดUFABET

Avatar_small
sophia 说:
2023年8月31日 20:32

I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject. AVALIADOR PREMIADO É GOLPE

Avatar_small
Johny 说:
2023年9月01日 11:33

Nice to be visiting your blog again, it has been months for me. Well this article that i’ve been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share. last minute naar jimbaran

Avatar_small
sophia 说:
2023年9月02日 18:41

 

I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject. 토토사이트

I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject. 토토사이트

Avatar_small
sophia 说:
2023年9月03日 01:21

I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject. ikaria lean belly juice

Avatar_small
sophia 说:
2023年9月03日 16:46

I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject. Animale Male Enhancement

Avatar_small
Dave 说:
2023年9月06日 21:38

A very excellent blog post. I am thankful for your blog post. I have found a lot of approaches after visiting your post. bubble shooter games free

Avatar_small
Dave 说:
2023年9月16日 21:16

Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! rugs on sale

Avatar_small
sophia 说:
2023年9月26日 18:44

This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. Fortune Tiger

Avatar_small
sophia 说:
2023年10月01日 13:53

I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day! Dinobet

Avatar_small
seo akc 说:
2023年10月07日 05:07

Make the most of mainly premium substances - you will find him or her for: <a href="https://www.cbdflex.com/product/30ct-cbd-gummy-bears-300mg/">Buy CBD Gummy Bears</a>

Avatar_small
Dave 说:
2023年10月08日 18:05

nice post, keep up with this interesting work. It really is good to know that this topic is being covered also on this web site so cheers for taking time to discuss this! Jogo do Tigre

Avatar_small
Dave 说:
2023年10月11日 21:01

Great post, you have pointed out some fantastic points , I likewise think this s a very wonderful website. CORTEXI

Avatar_small
Johny 说:
2023年10月22日 13:52

Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! ufabetทางเข้าเล่น

Avatar_small
Dave 说:
2023年10月26日 00:02

This blog is really great. The information here will surely be of some help to me. Thanks!. crypto recovery software

Avatar_small
wallpaper singapore 说:
2023年11月02日 02:26

Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. Sajta de Pollo

Avatar_small
Dav 说:
2023年11月06日 00:19

i really like this article please keep it up. wallpaper singapore

Avatar_small
Dave 说:
2023年11月13日 20:13

The variety in this pencil pack is a dream for artists. pencil packing work from home

Avatar_small
Dave 说:
2023年11月16日 19:55

very interesting post.this is my first time visit here.i found so mmany interesting stuff in your blog especially its discussion..thanks for the post! temazepam online kopen

Avatar_small
tech 说:
2023年12月11日 23:20

The next time I read a blog, I hope that it doesn't disappoint me as much as this one. I mean, I know it was my choice to read, but I thought you had something interesting to say. All I hear is a bunch of whining about something that you could fix if you weren't too busy looking for attention. UFABETแทงบอลเว็บแม่

Avatar_small
Dave 说:
2023年12月22日 17:55

very interesting keep posting. roket288

Avatar_small
Dave 说:
2023年12月24日 14:23

I am very happy to discover your post as it will become on top in my collection of favorite blogs to visit. hamis személyi igazolvány vásárlás

Avatar_small
johny 说:
2023年12月31日 01:14

I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work. hi 88

Avatar_small
Dave 说:
2024年1月07日 14:30

Hello, I have browsed most of your posts. This post is probably where I got the most useful information for my research. Thanks for posting, maybe we can see more on this. Are you aware of any other websites on this subject. comprare erba online

Avatar_small
Imamia Quran Academy 说:
2024年1月18日 08:31

Online Shia Quran Academy is an institute for Quran Education. They have trained teaching staff along with renowned Islamic Scholars for a better understanding of the Quran. Shia Quran Academy is an Online Ahle Tashi Institute that has all the features of traditional madrasahs including the teaching of an authentic understanding of the Quran. Additionally, Shia Quran Academy Online provides all teaching by certified professional teachers. Thus, joining Quran Academy will be suitable and beneficial for every learner. It is very difficult to find a good Online Shia Quran Center with Shia Teachers abroad except in Muslim or especially Ahle Tashi majority countries. Imamia Quran Center connects students virtually from all over the world including countries with less or no Ahle Tashi population or Shia Quran Centers. Our Quran Academy is a comprehensive institution with full fledged facilities regarding Shia Quran Learning. Ahle Tashi Quran student is free to choose the timings of classes, lecturers and tutors according to their feasibility and availability to Learn Shia Quran. Online learning more efficiently saves time and money spent over conveyance and physical going to any conventional Shia Quran InstituteOnline Shia Madrasa selects highly qualified Quran teachers, keeping in mind the ages of kids and adults, who teach kids and adults Quranic education as well as their beliefs, spirituality and worldly life. The Shia Quran Madrasa Online is a secure place for kids and adults to learn and memorize the Quran. They teach the translation and interpretation of the Holy Quran under the guidance of expert Quranic teachers. Our Shia Quran Madrasa is second to none in providing education to Ahle Tashi women’s. So our center has selected Ahle Tashi Female Quran teacher with higher education from Madrasas. Online Shia Quran Madrasa is one of the best academies providing its services all over the world including USA, UK, Canada, Germany, France and Australia. Shia Quran Academy, a leading Online Shia Academy in the USA, offers exceptional virtual services that are accessible to anyone worldwide.

Avatar_small
johny 说:
2024年2月03日 13:11

Interesting and amazing how your post is! It Is Useful and helpful for me That I like it very much, and I am looking forward to Hearing from your next.. beachwear uae

Avatar_small
Dave 说:
2024年2月21日 02:34

Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon! pets gear

Avatar_small
mubashir 说:
2024年3月04日 18:49

On this page you can read my interests, write something special. <a href=" https://www.fiverr.com/seo_mixbacklink/do-300-blog-comments-dofollow-backlinks-seo-link-building">link-building</a>

Avatar_small
johny 说:
2024年3月20日 18:43

Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. togeldulu

Avatar_small
johny 说:
2024年3月21日 17:47

I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer.Thanks. dago togel

Avatar_small
Dave 说:
2024年3月23日 03:13

Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon! tempo gear

Avatar_small
Dave 说:
2024年4月23日 04:35

Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me. wine

Avatar_small
masoomeenquranacadem 说:
2024年12月20日 19:32

Hi, first of all, thank you for all this information. Personally I was able to vote on your form and I am very happy with it. I am from Masoomeen Quran Academy. I wish you to join our Online Quran Academy for both kids & adults in USA and start your spiritual journey full of knowledge, wisdom and blessings.

 


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter