From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2519 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dequan Zhang Newsgroups: gmane.comp.sysutils.supervision.general Subject: Some thoughts on Dependency of Process Management Date: Sun, 17 Mar 2019 15:53:06 -0700 Message-ID: <1698ddbcf84.129cf6768152916.1232415792560164598@sxl.io> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_357585_383364003.1552863186820" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="181254"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Zoho Mail To: Original-X-From: supervision-return-2109-gcsg-supervision=m.gmane.org@list.skarnet.org Sun Mar 17 23:53:18 2019 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1h5eeb-000l3J-OV for gcsg-supervision@m.gmane.org; Sun, 17 Mar 2019 23:53:17 +0100 Original-Received: (qmail 18358 invoked by uid 89); 17 Mar 2019 22:53:42 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 18351 invoked from network); 17 Mar 2019 22:53:41 -0000 X-Mailer: Zoho Mail Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2519 Archived-At: ------=_Part_357585_383364003.1552863186820 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =20 =20 =20 =20 Hi,Recently I need to write a supervisor for my service that co= nsist of a few processes.And I encounter the systemd in my environment. In = the first place I thought I would like to write some Unit files for systemd= and I will be done.But it proves that I am wrong. Systemd is a very comple= x and even though I spent a lot of time to figure out what directive to use= , I still dont have confidence that I did it correctly.Then I look at one o= f the idea behind the systemd is that systemd will have a full dependency g= raph for running service.Is it a good idea? I asked myself. And my answer i= s no. Becuase processes are living context and anything can happen to it. = =C2=A0If a process needs to take a consideration of existence of other proc= ess, that it should do it by its own.It is not like a build dependeny that = can be bakced by a file system and is staic in a sense you can always go to= states x,y,z like git commits.Any comments on my thought? Should the syste= m manage the dependencies of service at runtime in a global scale?Best,Robi= n =20 =20 =20 =20 ------=_Part_357585_383364003.1552863186820--