chiark / gitweb /
install: make "reenable" work with templated units
authorRoss Lagerwall <rosslagerwall@gmail.com>
Mon, 17 Jun 2013 18:11:50 +0000 (19:11 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 13 Jul 2013 11:56:11 +0000 (07:56 -0400)
commit92d430a9e03056c0f62ed49149d59aed0046d0dd
tree8f9954fdf056f4f7768f90f5a3e49de50e9f9a38
parent6a75304e41e4487d840057a0e5f9972e141e4540
install: make "reenable" work with templated units

Before, "systemctl reenable getty@tty1.service" would fail with:
Failed to issue method call: File exists
To fix this, reimplement "reenable" explicitly as a disable followed by
an enable.
This is shorter and is how the man page documents its behavior.
src/shared/install.c