[arch-general] Issue with systemd --user services

John Smith vox2332 at gmail.com
Wed Sep 25 16:33:08 EDT 2013


Hello,

I'm having problems with starting 'mpd' as a user service:

$ systemctl --user status mpd
mpd.service - Music Player Daemon
   Loaded: loaded (/home/me/.config/systemd/user/mpd.service; enabled)
   Active: inactive (dead)

However it works without any problems when started manually:

$ systemctl --user start mpd
$ systemctl --user status mpd

mpd.service - Music Player Daemon
   Loaded: loaded (/home/me/.config/systemd/user/mpd.service; enabled)
   Active: active (running) since Wed 2013-09-25 22:10:36 BST; 5s ago
 Main PID: 709 (mpd)
   CGroup: /user.slice/user-1000.slice/user at 1000.service/mpd.service
           └─709 /usr/bin/mpd --stdout --no-daemon
/home/me/.config/mpd/mpdconf

Sep 25 22:10:36 XXX systemd[233]: Starting Music Player Daemon...
Sep 25 22:10:36 XXX systemd[233]: Started Music Player Daemon.


It's a fresh Arch install so it's unlikely that I messed something up. So
far, in regrads to systemd I followed wiki [1] enabling autologin, fixed
'pam' and added some environmental variables to user session as per [2].

Any idea why this may be happening?

[1] https://wiki.archlinux.org/index.php/Automatic_login_to_virtual_console
[2] https://archlinux.org/index.php/Systemd/User


More information about the arch-general mailing list