supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Dequan Zhang <robin@sxl.io>
To: <supervision@list.skarnet.org>
Subject: Some thoughts on Dependency of Process Management
Date: Sun, 17 Mar 2019 15:53:06 -0700	[thread overview]
Message-ID: <1698ddbcf84.129cf6768152916.1232415792560164598@sxl.io> (raw)

[-- Attachment #1: Type: text/plain, Size: 1140 bytes --]


        

        
            
                
            Hi,Recently I need to write a supervisor for my service that consist 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 complex 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 of the idea behind the systemd is that systemd will have a full dependency graph for running service.Is it a good idea? I asked myself. And my answer is no. Becuase processes are living context and anything can happen to it.  If a process needs to take a consideration of existence of other process, 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 system manage the dependencies of service at runtime in a global scale?Best,Robin
        
        

    
    


                 reply	other threads:[~2019-03-17 22:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1698ddbcf84.129cf6768152916.1232415792560164598@sxl.io \
    --to=robin@sxl.io \
    --cc=supervision@list.skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).