[arch-general] Issue with systemd --user services
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@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
[2013-09-25 21:33:08 +0100] John Smith:
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) ^^^^ It would be awesome if there were some logs to tell us what happened...
-- Gaetan
Can you show us the unitfile for the service as well. ie. mpd.service I assume. It would be in /lib/systemd/system or /etc/systemd/system sub dirs or one of the ones beneath these two dirs.
On Thu, Sep 26, 2013 at 4:45 AM, John Davis <davisjf@gmail.com> wrote:
Can you show us the unitfile for the service as well. ie. mpd.service I assume. It would be in /lib/systemd/system or /etc/systemd/system sub dirs or one of the ones beneath these two dirs.
As is shown in the 'status' output above, the path to the unit file is '/home/me/.config/systemd/user/mpd.service'. -t
participants (4)
-
Gaetan Bisson
-
John Davis
-
John Smith
-
Tom Gundersen