[systemd-devel] masking --global, but allowing --user

Matt Zagrabelny mzagrabe at d.umn.edu
Sat Sep 18 00:02:14 UTC 2021


Greetings,

I believe the Debian package of mpd enables a --global .service and
.socket unit for the mpd daemon/service.

I'd like to mask that and install it just to a single --user service.

I've tried that:

sudo systemctl --global mask mpd.service
sudo systemctl --global mask mpd.socket

and then:

systemctl --user enable mpd
Failed to enable unit: Unit file /etc/xdg/systemd/user/mpd.service is
masked.
The reason I do not like the --global version is due to logging in on
a virtual console as root and then mpd starting up and causing issues
with the preferred service running under my main user account.

Any idea how to solve my problem?

Thanks for any help!

-m


More information about the systemd-devel mailing list