Masking local configuration system unit fails on file collision

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a local system unit file at /etc/systemd/system/foo.conf, which I
need to mask.

However, when I try to mask it systemctl complains:

  # systemctl --version
  systemd 241 (241.7-2-arch)
  +PAM +AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid
  # systemctl mask foo
  Failed to mask unit: File /etc/systemd/system/foo.service already exists.
  #

If I need to move foo.service somewhere else, that kind of defeats the
point of `systemctl mask` doesn't it?

Shouldn't `systemctl mask` work equally well for locally-configured
system units?

Regards,
Vito Caputo
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux