systemd version the issue has been seen with
v250.4
Used distribution
Fedora Rawhide
Fedora Rawhide:
# systemctl disable cups
Removed /etc/systemd/system/multi-user.target.wants/cups.path.
Removed /etc/systemd/system/sockets.target.wants/cups.socket.
# systemctl enable cups
Created symlink /etc/systemd/system/printer.target.wants/cups.service → /usr/lib/systemd/system/cups.service.
Created symlink /etc/systemd/system/multi-user.target.wants/cups.service → /usr/lib/systemd/system/cups.service.
Created symlink /etc/systemd/system/sockets.target.wants/cups.socket → /usr/lib/systemd/system/cups.socket.
Created symlink /etc/systemd/system/multi-user.target.wants/cups.path → /usr/lib/systemd/system/cups.path.
# mv /etc/systemd/system /etc/systemd/system.old
# ln -s /etc/systemd/system.old/ /etc/systemd/system
# systemctl daemon-reload
# systemctl disable cups
Removed /etc/systemd/system/multi-user.target.wants/cups.service.
Removed /etc/systemd/system/multi-user.target.wants/cups.path.
Removed /etc/systemd/system/printer.target.wants/cups.service.
Removed /etc/systemd/system/sockets.target.wants/cups.socket.
# systemctl enable cups
Failed to enable unit: Unit file /etc/systemd/system/printer.target.wants/cups.service does not exist.
This, however, works in F35 (after fixing the printers.target -> printer.target in cups.service):
# mv /etc/systemd/system /etc/systemd/system.old
# ln -s /etc/systemd/system.old /etc/systemd/system
# systemctl disable cups
Removed /etc/systemd/system/multi-user.target.wants/cups.path.
Removed /etc/systemd/system/multi-user.target.wants/cups.service.
Removed /etc/systemd/system/sockets.target.wants/cups.socket.
Removed /etc/systemd/system/printer.target.wants/cups.service.
# systemctl enable cups
Created symlink /etc/systemd/system/printer.target.wants/cups.service → /usr/lib/systemd/system/cups.service.
Created symlink /etc/systemd/system/multi-user.target.wants/cups.service → /usr/lib/systemd/system/cups.service.
Created symlink /etc/systemd/system/sockets.target.wants/cups.socket → /usr/lib/systemd/system/cups.socket.
Created symlink /etc/systemd/system/multi-user.target.wants/cups.path → /usr/lib/systemd/system/cups.path.
The behavior is the same with SELinux both in enforcing and permissive modes.
systemd version the issue has been seen with
Used distribution
Fedora Rawhide:
This, however, works in F35 (after fixing the
printers.target->printer.targetincups.service):The behavior is the same with SELinux both in enforcing and permissive modes.