On Thu, 02 Apr 2020 12:08:53 +0200, Andrei Borzenkov wrote:
02.04.2020 11:54, Andreas Schwab пишет:
On Apr 01 2020, Jan Engelhardt wrote:
On Wednesday 2020-04-01 21:01, Stefan Brüns wrote:
[ -e /etc/systemd/system/pulseaudio.service ] && echo "already exists" || touch /etc/systemd/system/pulseaudio.service
The official way to mask the service is
ln -s /dev/null /etc/systemd/system/pulseaudio.service
The *official* way is systemctl mask pulseaudio.serivce.
"mask" is not intended as normal way to disable unit. "mask" is really last resort - if you need to use "mask", you likely have more general design issue. "mask" is really for units that cannot be enabled/diabled and are always active, and is more a debugging tool to troubleshoot or temporary work around a problem.
It makes no sense to first unconditionally "enable" unit and then to conditionally "mask" it. Do not "enable" it in the first place, it is as simple as that.
Well, but for a user socket, mask (with --global option) would be the straightforward way, no? Takashi -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org