summaryrefslogtreecommitdiffstats
path: root/shell-completion/bash/systemctl.in (follow)
Commit message (Collapse)AuthorAgeFilesLines
* systemctl: add new option to mount image inside a running service namespaceLuca Boccassi2021-01-211-1/+1
| | | | | Use the new DBUS method and follow the same pattern as the systemctl bind command.
* core: add DBUS method to bind mount new nodes without service restartLuca Boccassi2021-01-181-1/+1
| | | | | | | | | | | | | | Allow to setup new bind mounts for a service at runtime (via either DBUS or a new 'systemctl bind' verb) with a new helper that forks into the unit's mount namespace. Add a new integration test to cover this. Useful for zero-downtime addition to services that are running inside mount namespaces, especially when using RootImage/RootDirectory. If a service runs with a read-only root, a tmpfs is added on /run to ensure we can create the airlock directory for incoming mounts under /run/host/incoming.
* Added option --check-inhibitors for non-tty usageFelix Stupp2021-01-131-2/+5
| | | | | | | | | | | | | | As described in #2680, systemctl did ignore inhibitors if it is not attached to a tty to allow scripts to ignore inhibitors automatically. This pull request preserves this behavior but allows scripts to explicit check inhibitors if required. The new parameter '--check-inhibitors=yes' enables this feature. The old parameter '-i'/'--ignore-inhibitors' was deprecated in favor of '--check-inhibitors=no', the default behaviour can be specified with '--check-inhibitors=auto'. The new parameter is also described in the documentations and shell completions found here.
* shell-completion: fix systemctl set/unset/import-environmentZbigniew Jędrzejewski-Szmek2021-01-081-1/+10
| | | | | | unset-environment is completed with variable names in the environment block. set-environment the same, but suffixed with "=". import-environment is completed with variable names in the client environment.
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* systemctl: add --timestamp to change timestamp print formatLuca Boccassi2020-08-191-1/+4
| | | | | | | Timestamps for unit start/stop are recorded with microsecond granularity, but status and show truncate to second granularity by default. Add a --timestamp=pretty|us|utc option to allow including the microseconds or to use the UTC TZ to all timestamps printed by systemctl.
* systemctl: hide first column with --plain instead of --no-legendJouke Witteveen2020-04-171-1/+1
| | | | | | | | | | Hiding the first column, which may contain bullet circles, with --no-legend is undocumented and potentially unexpected. On the other hand, not printing bullet circles with --plain is documented so hiding the column with that switch is sensible. The combination "--full --no-legend --no-pager --plain" is appropriate for automated processing of systemctl output.
* bash-completion: do not ellipsize machine nameYu Watanabe2020-01-101-1/+1
|
* bash-completion: move shell-completion for log-level or friends to systemctlYu Watanabe2019-12-211-0/+9
|
* bash-completion: correctly react to an unescaped unit nameFrantisek Sumsal2019-05-301-7/+21
|
* bash-completion: process only non-template units for systemctl isolateFrantisek Sumsal2019-04-261-1/+1
|
* bash-completion: unify indentationFrantisek Sumsal2019-04-241-1/+1
|
* bash-completion: properly autocomplete escaped unit namesFrantisek Sumsal2019-04-241-1/+9
|
* shell-completion: use 4 space indentation tooZbigniew Jędrzejewski-Szmek2019-04-121-225/+225
| | | | The same as in other places, indentation levels were all over the place.
* bash-completion: also suggest units in reloading or activatingYu Watanabe2019-03-121-1/+4
| | | | Closes #11942.
* bash-completion: systemctl: use --output=help to show suggestionsYu Watanabe2018-12-131-2/+1
|
* journalctl: port JSON output mode to new JSON APILennart Poettering2018-10-111-1/+1
| | | | | | Also, while we are at it, beef it up, by adding json-seq support (i.e. https://tools.ietf.org/html/rfc7464). This is particularly useful in conjunction with jq's --seq switch.
* bash-completion: systemctl: re-implement __filter_units_by_properties()Yu Watanabe2018-09-121-49/+58
| | | | | | This also unifies __filter_units_by_property() and __filter_units_by_properties(), and makes completion for 'restart', 'reload' or 'stop' show more candidates.
* tree-wide: beautify remaining copyright statementsLennart Poettering2018-06-141-1/+1
| | | | | | Let's unify an beautify our remaining copyright statements, with a unicode ©. This means our copyright statements are now always formatted the same way. Yay.
* shell-completion: systemctl: do not list template units in {re,}startEmil Velikov2018-06-111-4/+2
| | | | | | | | | | Template units lacking DefaultInstance cannot be enabled/disabled or started/restarted. By adding DefaultInstance the unit can be enabled/disabled but it still cannot be started/restarted. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
* shell-completion: systemctl: pass current word to all list_unit*Emil Velikov2018-06-111-9/+9
| | | | | | | | Earlier patch added the current word to the performance critical paths. Here we add it to every place, for consistency sake. Suggested-by: Yu Watanabe (yuwata) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* bash-completion: systemctl: pass current partial unit to list-unit*Emil Velikov2018-06-111-24/+24
| | | | | | | | | | | | | | | | | | | | | | Pass the partial name of the unit file to list-unit-files and list-units. This allows for faster completion, since systemctl does not need to list all the unit files. For reference: - time systemctl list-unit-files -> ~200ms - time systemctl list-unit-files netctl* -> ~15ms - time systemctl list-units -> ~5ms - time systemctl list-units netctl* -> ~5ms While the list-units time itself is unaffected, now a shorter list is produced. Thus as we pass it to `systemctl show' (via __filter_units_by_properties) the execution time will be decreased even further. v2: Update list-units hunk in commit message, add quotes around $2* v3: Remove funky indentation, quote all $cur instances Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
* bash-completion: systemctl: use systemctl --no-pagerEmil Velikov2018-06-111-1/+1
| | | | Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
* bash-completion: also suggest template unit filesYu Watanabe2018-05-281-1/+8
| | | | Fixes #9041.
* bash-completion: suggest bus properties instead of configuration items for ↵Yu Watanabe2018-05-281-7/+2
| | | | | | 'systemctl -p' Closes #5137.
* tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek2018-04-061-13/+0
| | | | | | | | | | Files which are installed as-is (any .service and other unit files, .conf files, .policy files, etc), are left as is. My assumption is that SPDX identifiers are not yet that well known, so it's better to retain the extended header to avoid any doubt. I also kept any copyright lines. We can probably remove them, but it'd nice to obtain explicit acks from all involved authors before doing that.
* Rename suspend-to-hibernate to suspend-then-hibernateMario Limonciello2018-03-281-1/+1
| | | | | Per some discussion with Gnome folks, they would prefer this name as it's more descriptive of what's happening.
* Introduce suspend-to-hibernate (#8274)Mario Limonciello2018-03-081-2/+3
| | | | | | | | | | | | | | Suspend to Hibernate is a new sleep method that invokes suspend for a predefined period of time before automatically waking up and hibernating the system. It's similar to HybridSleep however there isn't a performance impact on every suspend cycle. It's intended to use with systems that may have a higher power drain in their supported suspend states to prevent battery and data loss over an extended suspend cycle. Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
* bash-completion: systemctl: add missing options and verbsYu Watanabe2018-01-101-6/+8
|
* Add SPDX license headers to shell completion scriptsZbigniew Jędrzejewski-Szmek2017-11-191-0/+1
|
* bash-completion: use the first argument instead of the global variable (#6457)Yu Watanabe2017-07-271-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | Without this fix: $ systemctl start <tab> Display all 135 possibilities? (y or n) $ __get_startable_units --system | wc -l 224 the number of the suggestions are quite different, as __get_startable_units --system does not filter already started units. With this fix, $ systemctl start <tab> Display all 135 possibilities? (y or n) $ __get_startable_units --system | wc -l 123 $ __get_template_names --system | wc -l 12 the number of the suggestions matches one the function returns. For consistency with the other internal functions, it should use the first argument instead of the global variable $mode. [zj: add commit message to make it sound like we know what we're doing]
* shell-completion: add systemctl revert (#6042)Lucas Werkmeister2017-05-291-1/+1
| | | | | | The `systemctl revert` command was added in v230 (commit 344ca7556b), but was missing from the shell completion specifications. Fixes #5978.
* Add short-iso-precise for journalctl output (#5884)Ian Wienand2017-05-081-1/+1
| | | | This adds a short-iso-precise option for journalctl output. It is similar to short-iso, but includes microseconds.
* systemctl: restore --failed (#5198)Zbigniew Jędrzejewski-Szmek2017-02-021-1/+1
| | | | | | | | | 'systemctl --failed' is an extremely common operation and it's nice to have a shortcut for it. Revert "man: don't document systemctl --failed" and add the option back to systemctl's help and shell completion scripts. This reverts commit 036359ba8d0aba7db7eac75d10073a849a033fd1.
* bash-completion: add support for --now (#5155)Jan Synacek2017-01-251-1/+1
|
* shell-completion: redirect all errors from systemctl to /dev/nullZbigniew Jędrzejewski-Szmek2017-01-111-1/+1
| | | | | | Completion scripts should not generate errors, ever. https://bugzilla.redhat.com/show_bug.cgi?id=1409649
* bash-completion: systemctl: use local variablesYu Watanabe2016-09-141-7/+3
|
* bash-completion: systemctl: do not pass masked or not-found units to filterYu Watanabe2016-09-091-6/+37
| | | | | | | Also, add new function __filter_units_by_properties() for filtering units by multiple properties, and make __get_startable_units() use it. fixes #4114
* journalctl: add new output mode "short-full" (#3880)Lennart Poettering2016-08-041-1/+1
| | | | | | | | | | | This new output mode formats all timestamps using the usual format_timestamp() call we use pretty much everywhere else. Timestamps formatted this way are some ways more useful than traditional syslog timestamps as they include weekday, month and timezone information, while not being much longer. They are also not locale-dependent. The primary advantage however is that they may be passed directly to journalctl's --since= and --until= switches as soon as #3869 is merged. While we are at it, let's also add "short-unix" to shell completion.
* tree-wide: remove uses of --failedZbigniew Jędrzejewski-Szmek2016-05-091-1/+1
| | | | It has been replaced by --state=failed.
* systemctl: rename "reload-or-try-restart" verb to "try-reload-or-restart"Lennart Poettering2016-01-281-1/+1
| | | | | | | | But also keep the old name as (undocumented) compatibility around. The reload-or-try-restart was documented to be a NOP if the unit is not running, since the previous commits this is also implemented. The old name suggests that the "try" logic only applies to restarting. Fix this, by moving the "try-" to the front, to indicate that the whole option is a NOP if the service isn't running.
* bash-completion: list valid signal namesEvgeny Vereshchagin2015-11-241-1/+2
| | | | this is a follow-up for commit 18540892d18addc4dcb81
* Remove snapshot unit typeZbigniew Jędrzejewski-Szmek2015-11-111-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Snapshots were never useful or used for anything. Many systemd developers that I spoke to at systemd.conf2015, didn't even know they existed, so it is fairly safe to assume that this type can be deleted without harm. The fundamental problem with snapshots is that the state of the system is dynamic, devices come and go, users log in and out, timers fire... and restoring all units to some state from the past would "undo" those changes, which isn't really possible. Tested by creating a snapshot, running the new binary, and checking that the transition did not cause errors, and the snapshot is gone, and snapshots cannot be created anymore. New systemctl says: Unknown operation snapshot. Old systemctl says: Failed to create snapshot: Support for snapshots has been removed. IgnoreOnSnaphost settings are warned about and ignored: Support for option IgnoreOnSnapshot= has been removed and it is ignored http://lists.freedesktop.org/archives/systemd-devel/2015-November/034872.html
* bash-completion: add minimal support fpr 'set-property' commandFranck Bui2015-11-041-1/+1
| | | | | | | | | 'set-property' was missing from the list of known command. Also a list of unit names will be proposed as next argument. However no support on property names is provided since it would require a hard coded list of them.
* shell-completion: systemctl: show completions for `user` in `global` modeEvgeny Vereshchagin2015-10-301-0/+2
|
* bash-completion: remove one more sort and sub-shellZbigniew Jędrzejewski-Szmek2015-09-281-2/+2
| | | | | {} is preferred to (), because the first is just grouping, while the second invokes a separate shell.
* shell-completion: use systemctl --state=helpZbigniew Jędrzejewski-Szmek2015-09-281-3/+1
| | | | | | | This way completion lists should stay up to date. Also use systemctl -t help to list types in zsh, as was already done in bash.
* shell-completion: update systemctl bash completionEvgeny Vereshchagin2015-09-041-2/+20
| | | | | Many new options have been added since the bash completion was last updated.
* shell-completion: add `failed` state to --state compwordsEvgeny Vereshchagin2015-08-281-1/+1
|
* bash-completion: generate unit type list from systemctl -t help optionEvgeny Vereshchagin2015-08-161-1/+1
|