You are not logged in.
After installing mpd I am able to start and stop it using systemd/systemctl in --user mode:
[user@host ~]$ systemctl --user start mpd.service
[user@host ~]$ systemctl --user status mpd.service
* mpd.service - Music Player Daemon
Loaded: loaded (/usr/lib/systemd/user/mpd.service; disabled; preset: enabl>
Active: active (running) since Mon 2024-12-09 00:56:02 PST; 20s ago
Invocation: 3e750273d9144b11b81cefa6e9616be7
Docs: man:mpd(1)
man:mpd.conf(5)
Main PID: 40346 (mpd)
Tasks: 3 (limit: 37812)
Memory: 26.3M (peak: 27.2M)
CPU: 349ms
CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/mpd.service
└─40346 /usr/bin/mpd --systemd
Dec 09 00:56:01 Denali systemd[1805]: Starting Music Player Daemon...
Dec 09 00:56:01 Denali (mpd)[40346]: mpd.service: Failed to set up user namespa>
Dec 09 00:56:01 Denali mpd[40346]: server_socket: bind to '0.0.0.0:6600' failed>
Dec 09 00:56:01 Denali mpd[40346]: decoder: Decoder plugin 'wildmidi' is unavai>
Dec 09 00:56:01 Denali mpd[40346]: Failed to initialize io_uring: io_uring_queu>
Dec 09 00:56:02 Denali systemd[1805]: Started Music Player Daemon.
[user@host ~]$ systemctl --user stop mpd.service
However, I am unable to enable the unit:
[user@host ~]$ systemctl --user enable mpd.service
Failed to enable unit: Unit $HOME/.config/systemd/user/default.target.wants/mpd.service does not exist
[user@host ~]$
I have verified that mpd.service and mpd.socket exist in /usr/lib/systemd/user/. I have also checked the ownership and the permissions of ~/.config/systemd/user/default/target.wants and its parents. They all belong to me and they all have 755 permissions. The existing symlinks in the directory all have 777 permissions. I disabled an existing service and got the same error when I tried to reenable it.
Last edited by GaryScottMartin (2024-12-11 10:50:52)
Offline
Failed to enable unit: Unit $HOME/.config/systemd/
https://bbs.archlinux.org/viewtopic.php … 2#p2212952
What kind of distro is that?
Resp. which dumb tutorial are people following here to get to this point?
Offline
Seth,
Thanks. Evidently, a lesson that I learned once before. When I migrated my system to its current hardware this summer, I failed to preserve my working /etc/environment and /etc/profile files and rebuilt them from scratch incorrectly.
Gary
Offline