Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.misc > #5512

Re: Lunduke says "lxde desktop is nothing to write home about"

From Marko Rauhamaa <marko@pacujo.net>
Newsgroups comp.misc
Subject Re: Lunduke says "lxde desktop is nothing to write home about"
Date 2014-11-02 10:37 +0200
Organization A noiseless patient Spider
Message-ID <87fve20zi7.fsf@elektro.pacujo.net> (permalink)
References (13 earlier) <878ujv2e0b.fsf@elektro.pacujo.net> <m32rcg$snp$1@dont-email.me> <87r3xnez8l.fsf@physik.rwth-aachen.de> <m334nv$u17$2@dont-email.me> <87r3xm35bi.fsf@physik.rwth-aachen.de>

Show all headers | View raw


Torsten Bronger <bronger@physik.rwth-aachen.de>:

> I've little idea about systemd or daemon programming, but I recognise
> good programming resources when I see them.

Lack of good documentation doesn't automatically mean a technical
approach is bad but it does make it difficult to jump on the bandwagon.

Much of systemd documentation addresses transitioning to it from init
scripts. So the focus is not on making requirements for the daemons but
on getting systemd up and running with the multitude of legacy daemons.
Since there is no one way a legacy service interacts with its
surroundings so the systemd developers have tried to glean from the
extant init scripts all existing interaction models and added support
for those.

I write daemons for work. I'd be very interested in knowing how I should
design my next work so it is hooks up with systemd according to
systemd's preferred model. So first I'd like to see a document that lays
out the service state machine as seen by systemd (it can be somewhat
guessed from the sd_notify man page). Then I'd like to know if I should
implement the daemonizing boilerplate in my daemon or if systemd offers
that as a service to me.

Finally, I'd need to know if I need to integrate with some libraries to
interact with systemd or if I simply need to follow a protocol. I'd much
prefer the latter since sd_notify et al are not standard facilities in
most programming languages.

If I can't use the preferred model in my daemon, I'd then like to know
what legacy model is best supported by systemd and what the requirements
are there. Should I emit a pid file? When does systemd consider the
service up and running (status)? How does systemd perform start, stop,
restart and reload? Are there other operations to consider?

All of these things can be implemented, badly. For example, I have seen
many an init script that starts a service by backgrounding it with a
trailing ampersand (&), making it look like the service is up before it
has completed its initialization. That in turn often leads to
silly-looking heuristic sleeps in the dependent services.

So, I would still very much like a systemd daemon writer's cookbook.


Marko

Back to comp.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Lunduke says "lxde desktop is nothing to write home about" RS Wood  <rsw@therandymon.com> - 2014-10-24 20:41 +0000
  Re: Lunduke says "lxde desktop is nothing to write home about" Marko Rauhamaa <marko@pacujo.net> - 2014-10-24 23:57 +0300
    Re: Lunduke says "lxde desktop is nothing to write home about" Rich <rich@example.invalid> - 2014-10-25 01:55 +0000
      Re: Lunduke says "lxde desktop is nothing to write home about" RS Wood <rsw@therandymon.com> - 2014-10-26 19:23 +0000
    Re: Lunduke says "lxde desktop is nothing to write home about" Anssi Saari <as@sci.fi> - 2014-10-27 22:17 +0200
      Re: Lunduke says "lxde desktop is nothing to write home about" Marko Rauhamaa <marko@pacujo.net> - 2014-10-27 22:56 +0200
        Re: Lunduke says "lxde desktop is nothing to write home about" Kara M'bola <maxupixu@in.val.it> - 2014-10-28 11:27 +0000
      Re: Lunduke says "lxde desktop is nothing to write home about" "D.D." <usenet.xyzzyx@spamgourmet.com> - 2014-10-28 04:34 -0700
        Re: Lunduke says "lxde desktop is nothing to write home about" Anssi Saari <as@sci.fi> - 2014-10-31 19:04 +0200
          Re: Lunduke says "lxde desktop is nothing to write home about" Marko Rauhamaa <marko@pacujo.net> - 2014-10-31 19:51 +0200
            Re: Lunduke says "lxde desktop is nothing to write home about" Dan Espen <despen@verizon.net> - 2014-10-31 14:55 -0400
              Re: Lunduke says "lxde desktop is nothing to write home about" Marko Rauhamaa <marko@pacujo.net> - 2014-10-31 23:48 +0200
                Re: Lunduke says "lxde desktop is nothing to write home about" Dan Espen <despen@verizon.net> - 2014-10-31 18:58 -0400
                Re: Lunduke says "lxde desktop is nothing to write home about" Marko Rauhamaa <marko@pacujo.net> - 2014-11-01 01:23 +0200
                Re: Lunduke says "lxde desktop is nothing to write home about" Dan Espen <despen@verizon.net> - 2014-10-31 21:50 -0400
                Re: Lunduke says "lxde desktop is nothing to write home about" Marko Rauhamaa <marko@pacujo.net> - 2014-11-01 09:14 +0200
                Re: Lunduke says "lxde desktop is nothing to write home about" Dan Espen <despen@verizon.net> - 2014-11-01 10:15 -0400
                Re: Lunduke says "lxde desktop is nothing to write home about" Marko Rauhamaa <marko@pacujo.net> - 2014-11-01 16:26 +0200
                Re: Lunduke says "lxde desktop is nothing to write home about" Dan Espen <despen@verizon.net> - 2014-11-01 10:40 -0400
                Re: Lunduke says "lxde desktop is nothing to write home about" Torsten Bronger <bronger@physik.rwth-aachen.de> - 2014-11-01 16:07 +0100
                Re: Lunduke says "lxde desktop is nothing to write home about" Dan Espen <despen@verizon.net> - 2014-11-01 13:20 -0400
                Re: Lunduke says "lxde desktop is nothing to write home about" Torsten Bronger <bronger@physik.rwth-aachen.de> - 2014-11-01 23:48 +0100
                Re: systemd documentation Dan Espen <despen@verizon.net> - 2014-11-01 19:53 -0400
                Re: systemd documentation Torsten Bronger <bronger@physik.rwth-aachen.de> - 2014-11-02 01:11 +0100
                Re: systemd documentation Dan Espen <despen@verizon.net> - 2014-11-01 21:25 -0400
                Re: Lunduke says "lxde desktop is nothing to write home about" Marko Rauhamaa <marko@pacujo.net> - 2014-11-02 10:37 +0200
                Re: Lunduke says "lxde desktop is nothing to write home about" Dan Espen <despen@verizon.net> - 2014-11-02 10:13 -0500
                Re: Lunduke says "lxde desktop is nothing to write home about" Marko Rauhamaa <marko@pacujo.net> - 2014-11-01 18:09 +0200
                Re: Lunduke says "lxde desktop is nothing to write home about" Dan Espen <despen@verizon.net> - 2014-11-01 13:16 -0400
                Re: Lunduke says "lxde desktop is nothing to write home about" Marko Rauhamaa <marko@pacujo.net> - 2014-11-01 22:05 +0200
                Re: Lunduke says "lxde desktop is nothing to write home about" Dan Espen <despen@verizon.net> - 2014-11-01 19:39 -0400
                Re: Lunduke says "lxde desktop is nothing to write home about" Marko Rauhamaa <marko@pacujo.net> - 2014-11-02 10:57 +0200
        Re: Lunduke says "lxde desktop is nothing to write home about" Anssi Saari <as@sci.fi> - 2014-11-14 20:21 +0200

csiph-web