Am Wed, 25 Feb 2015 00:11:18 +0100
schrieb Marc Joliet <mar...@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.

Greetings
-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup

Attachment: pgpxpxr9rz3Ou.pgp
Description: Digitale Signatur von OpenPGP

Reply via email to