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


Groups > comp.misc > #7930

Re: Why I dislike systemd

From Dan Espen <despen@verizon.net>
Newsgroups comp.misc
Subject Re: Why I dislike systemd
Date 2015-06-15 15:19 -0400
Organization A noiseless patient Spider
Message-ID <mln8dm$5qi$2@dont-email.me> (permalink)
References (1 earlier) <mlmktt$pka$1@dont-email.me> <m21thdxd5e.fsf@therandymon.com> <87381tt1ow.fsf@elektro.pacujo.net> <mlmuma$408$1@dont-email.me> <87wpz4suqg.fsf@elektro.pacujo.net>

Show all headers | View raw


Marko Rauhamaa <marko@pacujo.net> writes:

> Dan Espen <despen@verizon.net>:
>
>> Marko Rauhamaa <marko@pacujo.net> writes:
>>> For example, who is supposed to write the systemd configuration file
>>> for the "postfix" MTA?
>>>
>>>  (a) the system administrator
>>>
>>>  (b) the distro maker
>>>
>>>  (c) the "postfix" developers
>>
>> Since the developers don't know the names of other services that a
>> .service may need, the distro.
>>
>>> As it stands, the distro makers took on that responsibility for
>>> political reasons.
>>
>> Technical reasons as explained above.
>>
>>> However, the distro maker is not going to include the
>>> systemd configuration for my new service. So am I, the developer,
>>> supposed to write the systemd configuration files or is that a job for
>>> my customer, the system administrator?
>>
>> Your job.  No one else has the info.
>
> First you say, the distro, and now, it's the developer. So the reason is
> political, not technical ("postfix" developers don't provide systemd
> files so RedHat will have to).

Maybe I mis-read the question, but the question seemed to be about "my new
service".  How does the distro know anything about a user developed
service.
If the question is about postfix, the distro does the service file.

>>>  * How do I quote an arbitrary command into an ExecStart entry?
>>
>> Looks like you just type the command without quotes.
>
> It's more complicated than that.
>
> What if the command pathname contains a space character?
>
> <URL: http://www.freedesktop.org/software/systemd/man/systemd.servic
> e.html> states:
>
>   The command to execute must an absolute path name. It may contain
>   spaces, but control characters are not allowed.
>
> So how does one express whitespace? Quotes are not allowed in the
> command name because the first character must be a slash (/).
>
> Furthermore, the rest of the arguments are quoted in a complex, yet
> barely documented manner. I ended up enclosing the startup logic in a
> bash script and invoking that script from the .service file.

Without reading the man page, I'm going to guess the space in a command
would be backslashed.

Now I read the command line section and it doesn't seem specific on
the backslash, but I still think it will work.
They do mention if you desire all the features of a shell command line
you can get them by doing soemthing like:

           ExecStart=/bin/sh -c 'dmesg | tac'


-- 
Dan Espen

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


Thread

Why I dislike systemd Rich <rich@example.invalid> - 2015-06-15 10:04 +0000
  Re: Why I dislike systemd Huge <Huge@nowhere.much.invalid> - 2015-06-15 11:17 +0000
  Re: Why I dislike systemd Dan Espen <despen@verizon.net> - 2015-06-15 09:46 -0400
    Re: Why I dislike systemd RS Wood <rsw@therandymon.com> - 2015-06-15 17:24 +0300
      Re: Why I dislike systemd Marko Rauhamaa <marko@pacujo.net> - 2015-06-15 18:45 +0300
        Re: Why I dislike systemd Dan Espen <despen@verizon.net> - 2015-06-15 12:33 -0400
          Re: Why I dislike systemd Marko Rauhamaa <marko@pacujo.net> - 2015-06-15 21:16 +0300
            Re: Why I dislike systemd Dan Espen <despen@verizon.net> - 2015-06-15 15:19 -0400
              Re: Why I dislike systemd Marko Rauhamaa <marko@pacujo.net> - 2015-06-15 23:11 +0300
                Re: Why I dislike systemd Dan Espen <despen@verizon.net> - 2015-06-15 16:53 -0400
                Re: Why I dislike systemd Marko Rauhamaa <marko@pacujo.net> - 2015-06-16 00:14 +0300
                Re: Why I dislike systemd Dan Espen <despen@verizon.net> - 2015-06-15 21:02 -0400
                Re: Why I dislike systemd Marko Rauhamaa <marko@pacujo.net> - 2015-06-16 07:48 +0300
                Re: Why I dislike systemd Dan Espen <despen@verizon.net> - 2015-06-16 11:08 -0400
        Re: Why I dislike systemd Richard Kettlewell <rjk@greenend.org.uk> - 2015-06-15 19:20 +0100
        Re: Why I dislike systemd Mike Spencer <mds@bogus.nodomain.nowhere> - 2015-06-15 16:19 -0300
      Re: Why I dislike systemd Richard Kettlewell <rjk@greenend.org.uk> - 2015-06-15 20:13 +0100
    Re: Why I dislike systemd Bob Eager <news0005@eager.cx> - 2015-06-15 15:50 +0000
      Re: Why I dislike systemd Dan Espen <despen@verizon.net> - 2015-06-15 12:14 -0400
      Re: Why I dislike systemd Richard Kettlewell <rjk@greenend.org.uk> - 2015-06-15 17:18 +0100

csiph-web