]> git.ipfire.org Git - thirdparty/systemd.git/commit
install: beef up preset logic to limit to only enable or only disable, and do all...
authorLennart Poettering <lennart@poettering.net>
Mon, 16 Jun 2014 17:49:31 +0000 (19:49 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Jun 2014 00:43:17 +0000 (02:43 +0200)
commitd309c1c36426f9a355e28e3c35153281939aeea6
tree74f4042dad40df25503f1b8c00e2cf3ce2f89cf6
parentbcafe923a74e702abbba3655b0270febe143499f
install: beef up preset logic to limit to only enable or only disable, and do all-unit preset operations

The new "systemctl preset-all" command may now be used to put all
installed units back into the enable/disable state the vendor/admin
encoded in preset files.

Also, introduce "systemctl --preset-mode=enable-only" and "systemctl
--preset-mode=disable-only" to only apply the enable or only the disable
operations of a "systemctl preset" or "systemctl preset-all" operation.

"systemctl preset-all" implements this RFE:

https://bugzilla.redhat.com/show_bug.cgi?id=630174
man/systemctl.xml
src/core/dbus-manager.c
src/shared/install.c
src/shared/install.h
src/systemctl/systemctl.c
src/test/test-install.c