Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Marko Rauhamaa <marko@pacujo.net> |
|---|---|
| Newsgroups | comp.misc |
| Subject | Re: Why I dislike systemd |
| Date | 2015-06-15 21:16 +0300 |
| Organization | A noiseless patient Spider |
| Message-ID | <87wpz4suqg.fsf@elektro.pacujo.net> (permalink) |
| References | <QklA5KmxnVVhWqTQbSkzSkl2@dont-email.me> <mlmktt$pka$1@dont-email.me> <m21thdxd5e.fsf@therandymon.com> <87381tt1ow.fsf@elektro.pacujo.net> <mlmuma$408$1@dont-email.me> |
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).
>> * 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.
>> * Where do I place my .service file?
>
> man systemd look for DIRECTORIES
We concluded as much: /usr/lib/systemd/system. The man page advises to
consult pkg-config, but pkg-config might not be available on the target
machine, IIRC.
>> [Analogous problems plague also SELinux. Systemd is a piece of cake
>> compared to SELinux.]
>
> Right after I install, selinux gets removed/disabled.
As a developer, I don't have that privilege. I have to do the "right
thing" for the user, who could depend on systemd and selinux.
Marko
Back to comp.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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