From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 33A8F138ACE for ; Fri, 27 Feb 2015 22:30:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5F233E0AD7; Fri, 27 Feb 2015 22:30:11 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9237CE0ACF for ; Fri, 27 Feb 2015 22:30:10 +0000 (UTC) Received: from marcec.fritz.box ([93.181.44.4]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0M1Wcz-1Xcw2K0Pgv-00tW0I for ; Fri, 27 Feb 2015 23:30:09 +0100 Date: Fri, 27 Feb 2015 23:29:58 +0100 From: Marc Joliet To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] Systemd migration: opinion and questions Message-ID: <20150227232958.318090a3@marcec.fritz.box> In-Reply-To: <20150225234220.1742baaa@marcec.fritz.box> References: <20150224211545.50495cc0@marcec.fritz.box> <54ECE20F.3070408@electronsweatshop.com> <20150225001118.339f59da@marcec.fritz.box> <20150225234220.1742baaa@marcec.fritz.box> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@lists.gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/tVIBsbof6jIJWe/nbC/7Tzi"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:4PqTHpziLLOTezK0PX1CgG7sZWT3E7xi4QuaY28XovDrswy51FU tzg60uzKOybI46QiIRT0tQtbGupkrTsEXrYeHaRhD7BnkESReX/2q5xlypwSjWx6bpCzs4C sbefeUgis0wyWZR9Lgqa7SrsynAYuMJjsaboaEgHhZGnlzXFiWS2dcnbXwjMjL26g9txxUy jG/v6MS8+BzCNoqlpPjpQ== X-UI-Out-Filterresults: notjunk:1; X-Archives-Salt: c3206c47-dfdb-44fe-92df-fc97f03770d9 X-Archives-Hash: 9ee50c49ac11ad661b33d7c383e57d6d --Sig_/tVIBsbof6jIJWe/nbC/7Tzi Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Wed, 25 Feb 2015 23:42:20 +0100 schrieb Marc Joliet : > Am Wed, 25 Feb 2015 00:11:18 +0100 > schrieb Marc Joliet : >=20 > [...] > > What was more difficult was getting it to depend on the right network t= arget > > properly. The same "Requires" line that worked for samba and cups fail= s with > > "failed to add dependency" type errors: > >=20 > > 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. > >=20 > > So apparently user units can't "Require" system units? However, adding a > > symlink from the service unit in /etc to .../mpd.service.requires/ solv= ed that > > problem, but yielded a new one: > >=20 > > Feb 24 23:26:49 marcec network[2200]: netctl needs root privileges > >=20 > > Oh, well... Maybe it would work with systemd-networkd? > [...] >=20 > FWIW, I found this earlier today: > http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/, which ev= en 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 recommenda= tions 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 parti= cular address is set "FreeBind=3Dtrue", 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.) --=20 Marc Joliet -- "People who think they know everything really annoy those of us who know we don't" - Bjarne Stroustrup --Sig_/tVIBsbof6jIJWe/nbC/7Tzi Content-Type: application/pgp-signature Content-Description: Digitale Signatur von OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJU8O/vAAoJEL/Q5oYsiHj0EiQP/0KObdwG7SOqfEWUi5VaeqlV sLyck/X5vfK5EGOtURgrL2jJmn3AQ1VQO6hzk5v30vcjPqob0wSFeMohCxWyS3Qf IvdR6Z6JIcRD8sXgFqzAFspLPiYTpVvC+b2boVoJnvVi6hoY+wSOypKGrMuw6ihx w2FX/P6gT557vHdQZIjk8yGNpUGmFKQx9IBgNBbNV+3jKY5B6a0zXRnS3vL1upZT efCnTZmlKOMu2whTlHDg8cGhhU8oaBRLRK+5MXgLr+B0ymx5nDaV+hqTRkAE+Fs0 BQJBcf/iaEqEzHZ+6KFEUGgi6CDjVSQhhHq5RvPYhB1SszQ5uJo/WAoKlwsrkfFp gZ0G4xXGVvxCTPbGRqi6hoyv9eUAPt7Dr7QYUS3fPx4j7n77RaJ6uy+hE1INveaj qkDuV5BrVl3xBIW9JPZsmWumanGHOliheTWjusF0LW1T4cstZigWS+LAkpYADLkO Xry5j18hPLjxDAef8gJ+SqavCe/p8NOWWDOBhwE8GO5YulfxIfQQqSh5hrKRDbZo Fb8JKVlUhjbn/vflJOUa+qMA24dmhSaogDnR0NjtPKCJv0Bwjo/W28n/eF+KshCt peBwbV4tz+BvOXsLhxOl3oFkQTSquQ8hh9Xh7Ul6/u5KPGrLQuovIIhahpxqK5AF T3+MUz6lV7H6bJrVVyAC =5vIy -----END PGP SIGNATURE----- --Sig_/tVIBsbof6jIJWe/nbC/7Tzi--