diff options
author | Jan Synacek <jsynacek@redhat.com> | 2016-10-20 15:20:11 +0200 |
---|---|---|
committer | Jan Synacek <jsynacek@redhat.com> | 2016-10-24 10:19:08 +0200 |
commit | 3b3557c410c7910fae0990599dcb82711cf5fbb7 (patch) | |
tree | 4605a0c189655884c7bd24e370ef259302f8466d /src/shared/install.h | |
parent | b3796dd8349af4235143889e44522a730c1635c0 (diff) |
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.
Diffstat (limited to 'src/shared/install.h')
-rw-r--r-- | src/shared/install.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/install.h b/src/shared/install.h index 561b521bbc..7a5859e729 100644 --- a/src/shared/install.h +++ b/src/shared/install.h @@ -82,6 +82,7 @@ enum UnitFileChangeType { enum UnitFileFlags { UNIT_FILE_RUNTIME = 1, UNIT_FILE_FORCE = 1 << 1, + UNIT_FILE_DRY_RUN = 1 << 2, }; /* type can either one of the UnitFileChangeTypes listed above, or a negative error. |