systemctl: Don't skip SysV init.d scripts when enabling/disabling units
authorMartin Pitt <martin.pitt@ubuntu.com>
Wed, 27 May 2015 12:52:17 +0000 (14:52 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 28 May 2015 17:42:45 +0000 (19:42 +0200)
commit355ff449007df8be192ac316ab314599f56b2241
tree027b2ea7b688d3993c2b5918aaea9c0e0bd26bfe
parent0f0467e63b0e0688ae9edb1512c1a2637d62ddb4
systemctl: Don't skip SysV init.d scripts when enabling/disabling units

If there is both a SysV init.d script and a systemd unit for a given name, we
want to do the same enable/disable operation for both, instead of just on the
systemd unit. This keeps the enablement status in sync so that switching init
systems behaves as expected.
src/systemctl/systemctl.c