From: Marc Joliet <marcec@gmx.de>
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64] Systemd migration: opinion and questions
Date: Fri, 27 Feb 2015 23:29:58 +0100 [thread overview]
Message-ID: <20150227232958.318090a3@marcec.fritz.box> (raw)
In-Reply-To: <20150225234220.1742baaa@marcec.fritz.box>
[-- Attachment #1: Type: text/plain, Size: 2195 bytes --]
Am Wed, 25 Feb 2015 23:42:20 +0100
schrieb Marc Joliet <marcec@gmx.de>:
> Am Wed, 25 Feb 2015 00:11:18 +0100
> schrieb Marc Joliet <marcec@gmx.de>:
>
> [...]
> > What was more difficult was getting it to depend on the right network target
> > properly. The same "Requires" line that worked for samba and cups fails with
> > "failed to add dependency" type errors:
> >
> > Feb 24 21:20:01 marcec systemd[540]: Cannot add dependency job for unit
> > mpd.service, ignoring: Unit netctl@dhcp-wan0.service failed to load: No such file or directory.
> >
> > So apparently user units can't "Require" system units? However, adding a
> > symlink from the service unit in /etc to .../mpd.service.requires/ solved that
> > problem, but yielded a new one:
> >
> > Feb 24 23:26:49 marcec network[2200]: netctl needs root privileges
> >
> > Oh, well... Maybe it would work with systemd-networkd?
> [...]
>
> FWIW, I found this earlier today:
> http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/, which even has
> its own FAQ entry (guess I should have found it earlier, then). Systemd has a
> network-online.target, which looks like what I want(ed). I'm too tired to try it
> now, but I'll do so tomorrow.
OK, I looked at this today and it turns out that the way I reconfigured mpd (to
use 'bind_to_address "any"') is not only a simpler way to express what I had
already configured it to do anyway, but is also in line with the recommendations
in the above article (in the last section "What does this mean for me, a
Developer?").
That article also pointed me to the correct solution for my cups and dovecot
socket units: what one *should* do when one wants/has to listen to a particular
address is set "FreeBind=true", which allows the bind to succeed even if the
address is not configured yet. This is obviously much better than trying to
meddle with dependencies as I was doing above.
(Current versions (i.e., ~arch) of MPD ship a socket unit, so one can use
FreeBind there, too, if necessary.)
--
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup
[-- Attachment #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-02-27 22:30 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-24 20:15 [gentoo-amd64] Systemd migration: opinion and questions Marc Joliet
2015-02-24 20:41 ` Randy Barlow
2015-02-24 23:11 ` Marc Joliet
2015-02-25 22:42 ` Marc Joliet
2015-02-27 22:29 ` Marc Joliet [this message]
2015-02-24 21:44 ` Rich Freeman
2015-02-25 7:50 ` Marc Joliet
2015-02-25 12:01 ` Rich Freeman
2015-02-25 18:25 ` Marc Joliet
2015-03-01 12:48 ` Marc Joliet
2015-03-01 13:34 ` Rich Freeman
2015-03-01 18:20 ` Marc Joliet
2015-03-01 19:13 ` Rich Freeman
2015-03-02 5:13 ` [gentoo-amd64] " Duncan
2015-03-14 14:01 ` Marc Joliet
2015-03-14 12:57 ` [gentoo-amd64] " Marc Joliet
2015-03-14 13:02 ` Marc Joliet
2015-02-25 10:13 ` [gentoo-amd64] " Duncan
2015-02-25 12:13 ` Rich Freeman
2015-02-26 0:35 ` Duncan
2015-02-25 18:56 ` Marc Joliet
2015-02-26 1:55 ` Duncan
2015-02-24 21:51 ` [gentoo-amd64] " Frank Peters
2015-02-25 14:31 ` Michael Mattes
2015-02-25 20:28 ` Marc Joliet
2015-02-25 10:15 ` [gentoo-amd64] " Duncan
2015-02-25 10:33 ` Duncan
2015-02-25 19:17 ` Marc Joliet
2015-02-25 19:31 ` Rich Freeman
2015-02-25 19:54 ` Marc Joliet
2015-02-25 22:30 ` [gentoo-amd64] " Marc Joliet
2015-05-20 8:01 ` Marc Joliet
2015-05-20 10:44 ` [gentoo-amd64] " Duncan
2015-05-20 11:22 ` Rich Freeman
2015-05-21 9:36 ` Duncan
2015-05-21 11:33 ` Marc Joliet
2015-05-23 8:49 ` Marc Joliet
2015-05-23 9:32 ` Marc Joliet
2015-05-23 10:41 ` Duncan
2015-05-23 11:11 ` Marc Joliet
2015-05-23 11:37 ` Rich Freeman
2015-05-23 12:02 ` Duncan
2015-05-23 18:07 ` Marc Joliet
2015-05-23 8:17 ` Duncan
2015-05-23 12:14 ` Duncan
2015-05-21 11:29 ` Marc Joliet
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=20150227232958.318090a3@marcec.fritz.box \
--to=marcec@gmx.de \
--cc=gentoo-amd64@lists.gentoo.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