]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/install.h
shared, systemctl: teach is-enabled to show installation targets 4406/head
authorJan Synacek <jsynacek@redhat.com>
Thu, 20 Oct 2016 13:20:11 +0000 (15:20 +0200)
committerJan Synacek <jsynacek@redhat.com>
Mon, 24 Oct 2016 08:19:08 +0000 (10:19 +0200)
commit3b3557c410c7910fae0990599dcb82711cf5fbb7
tree4605a0c189655884c7bd24e370ef259302f8466d
parentb3796dd8349af4235143889e44522a730c1635c0
shared, systemctl: teach is-enabled to show installation targets

It may be desired by users to know what targets a particular service is
installed into. Improve user friendliness by teaching the is-enabled
command to show such information when used with --full.

This patch makes use of the newly added UnitFileFlags and adds
UNIT_FILE_DRY_RUN flag into it. Since the API had already been modified,
it's now easy to add the new dry-run feature for other commands as
well. As a next step, --dry-run could be added to systemctl, which in
turn might pave the way for a long requested dry-run feature when
running systemctl start.
man/systemctl.xml
src/core/dbus-manager.c
src/core/org.freedesktop.systemd1.conf
src/shared/install.c
src/shared/install.h
src/systemctl/systemctl.c