From: Luca Boccassi Date: Mon, 8 Apr 2024 01:20:18 +0000 (+0100) Subject: systemctl: add --clean= values to documentation and shell completion X-Git-Tag: v256-rc1~139 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ef5f7f9437bf45a5dda93ff626f99a6a24b0fca8;p=thirdparty%2Fsystemd.git systemctl: add --clean= values to documentation and shell completion --- diff --git a/man/org.freedesktop.systemd1.xml b/man/org.freedesktop.systemd1.xml index 6e90662fa9e..f60b3ba7028 100644 --- a/man/org.freedesktop.systemd1.xml +++ b/man/org.freedesktop.systemd1.xml @@ -575,8 +575,6 @@ node /org/freedesktop/systemd1 { - - @@ -1585,6 +1583,12 @@ node /org/freedesktop/systemd1 { shouldn't be bound to a lifecycle of the service, e.g. they should continue running after the restart of the service. Note that the main PID of the service can not be migrated to an auxiliary scope. Also, flags argument must be 0 and is reserved for future extensions. + + CleanUnit() deletes the configuration, state, logs, cache and runtime data + directories and clear out the file descriptors store for the unit, as specified in the mask + parameters. The possible values are configuration, state, + logs, cache, runtime, + fdstore, and all. diff --git a/man/systemctl.xml b/man/systemctl.xml index ca101d5b75c..a8bc85707b6 100644 --- a/man/systemctl.xml +++ b/man/systemctl.xml @@ -569,6 +569,51 @@ Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output err these three types of resources are generally redundant and reproducible on the next invocation of the unit). Note that the specified units must be stopped to invoke this operation. + + + Possible values for <option>--what=</option> + + + + + + Value + Unit Setting + + + + + runtime + RuntimeDirectory= + + + state + StateDirectory= + + + cache + CacheDirectory= + + + logs + LogsDirectory= + + + configuration + ConfigurationDirectory= + + + fdstore + FileDescriptorStorePreserve= + + + all + All of the above + + + +
+ diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in index 7f85e70d40f..f4576c4355b 100644 --- a/shell-completion/bash/systemctl.in +++ b/shell-completion/bash/systemctl.in @@ -193,7 +193,7 @@ _systemctl () { comps='auto yes no' ;; --what) - comps='configuration state cache logs runtime all' + comps='configuration state cache logs runtime fdstore all' ;; --image) comps=$(compgen -A file -- "$cur")