[systemd-devel] [PATCH] Fix assertions while disabling unexisting target units

Lennart Poettering lennart at poettering.net
Mon Jul 15 16:16:24 PDT 2013


On Mon, 15.07.13 05:00, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) wrote:

> # systemctl enable kmsconvt at tty5.service
> ln -s '/etc/systemd/system/kmsconvt at .service' '/etc/systemd/system/getty.target.wants/kmsconvt at tty5.service'
> # systemctl disable kmsconvt at tty5.service
> rm '/etc/systemd/system/autovt at .service'
> rm '/etc/systemd/system/getty.target.wants/kmsconvt at .service'
> rm '/etc/systemd/system/getty.target.wants/kmsconvt at tty5.service'
> 
> Basically the whole idea of removing all symlinks pointing to the
> template is borked.

Hmm, this really looks wrong. I figure disabling an instance should just
remove that symlink, and disabling a template should remove all
instances.

Added to the TODO list so that we don't forget about this.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list