-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/24/2015 03:15 PM, Marc Joliet wrote:
> === User units ===
> 
> I would like to convert some programs I start in .xprofile to units
> that are started by my users's systemd instance.  I started off
> with mpd, but it doesn't start automatically ("systemctl --user
> start mpd" works fine, though), even though it's enabled:
> 
> % systemctl --user status mpd ● mpd.service - Music Player Daemon 
> Loaded: loaded (/usr/lib64/systemd/system/mpd.service; enabled) 
> Active: active (running) since Di 2015-02-24 19:39:46 CET; 1h 6min
> ago Main PID: 1091 (mpd) CGroup:
> /user.slice/user-1000.slice/user@1000.service/mpd.service └─1091
> /usr/bin/mpd --no-daemon
> 
> Feb 24 19:39:46 marcec systemd[384]: Started Music Player Daemon. 
> [...]
> 
> Also:
> 
> % tree .config/systemd/ .config/systemd/ └── user ├── mpd.service
> -> /usr/lib64/systemd/system/mpd.service └──
> multi-user.target.wants └── mpd.service ->
> /home/marcec/.config/systemd/user/mpd.service
> 
> Is the symlink the problem?  Do I have to create an actual file?
> Is the target.wants wrong?

I ran into this problem as well. It is indeed the symlink! There is an
RFE filed for this:

https://bugzilla.redhat.com/show_bug.cgi?id=1014311

You don't have to create the entire file either though, it turns out.
It is possible to inherit a unit in a unit, so you could create a unit
that just inherits the one from /usr/lib. I've never tried this with a
user unit, but I suspect it would work. Read the section "Example 2.
Overriding vendor settings" at the end of this page:

http://www.freedesktop.org/software/systemd/man/systemd.unit.html

- -- 
R
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJU7OIPAAoJEHhEzLg73SRiSCkP/jTv3EWAUTKo5xWFSknMUdUc
EfKIc5i4dVX47IKpMF2jKH3201gZ6XJD9GwJW4MFcrM6Ay4q+JiowActdwihptWW
keTkJsZ3CrKm6ulD6rkugA443cjKKdeVPdRSCz9FNEH5T5PRqMTRLwnRendDI/9+
CKD1l6WTLGaHTpsmgVrKC7HBaZd4GLzGC7izrHcVuzUHUu3vJzxR/xMfjYALeU5J
EPdyHsgydN42IMbox+mD1IlSfQXWIV1YxyOgTSNoLUlpApkDzZpFoF7SauNMHW93
DwUwSqFxfvft28gVEmykc31oILzI41aVgNd+pZLCjzl9WDEWpxsqIpXqS2jiX2iD
NheSTuloR9zbz1Cs0tsY+T9QkQv/PVuGcDfymuHbaZsUdm3HoIkPTF1DeYN2zpIP
zpsJFBKQ05lE/sXpBR229QUvQHBasmczq99TvGKFxkz4JBpQybPbEbqZ862eveg3
H+Zi8/y3vvT2ISYNIvnrLDyAgf/6nLRue82I7eWvBcvuaHHeUGvTXSnN32QJBtY3
Zk5ZlpW1t9YT84jv6hXThS948N8NKJJrxa5dFiocGuTzhBdcLtlNheizPDPGprUM
a3inD7SQxw/9U93VMyRPuA9H5gA70ssQRXCvrRHQoV7U+g5qucWV53cXo3bZpBmY
MR5hDLvnQVIr/RHzmQ1E
=hUb2
-----END PGP SIGNATURE-----

Reply via email to