mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
systemctl: clarify --global, --root and --runtime options (#7071)
They're not only for enabling.
This commit is contained in:
parent
ed05452014
commit
4e93d369b9
@ -375,14 +375,14 @@ _arguments -s \
|
||||
'--system[Connect to system manager]' \
|
||||
'--user[Connect to user service manager]' \
|
||||
"--no-wall[Don't send wall message before halt/power-off/reboot]" \
|
||||
'--global[Enable/disable unit files globally]' \
|
||||
'--global[Enable/disable/mask unit files globally]' \
|
||||
"--no-reload[When enabling/disabling unit files, don't reload daemon configuration]" \
|
||||
'--no-ask-password[Do not ask for system passwords]' \
|
||||
'--kill-who=[Who to send signal to]:killwho:(main control all)' \
|
||||
{-s+,--signal=}'[Which signal to send]:signal:_signals' \
|
||||
{-f,--force}'[When enabling unit files, override existing symlinks. When shutting down, execute action immediately]' \
|
||||
'--root=[Enable unit files in the specified root directory]:directory:_directories' \
|
||||
'--runtime[Enable unit files only temporarily until next reboot]' \
|
||||
'--root=[Enable/disable/mask unit files in the specified root directory]:directory:_directories' \
|
||||
'--runtime[Enable/disable/mask unit files only temporarily until next reboot]' \
|
||||
{-H+,--host=}'[Operate on remote host]:userathost:_sd_hosts_or_user_at_host' \
|
||||
{-P,--privileged}'[Acquire privileges before execution]' \
|
||||
{-n+,--lines=}'[Journal entries to show]:number of entries' \
|
||||
|
@ -7153,12 +7153,14 @@ static void systemctl_help(void) {
|
||||
" --no-pager Do not pipe output into a pager\n"
|
||||
" --no-ask-password\n"
|
||||
" Do not ask for system passwords\n"
|
||||
" --global Enable/disable unit files globally\n"
|
||||
" --runtime Enable unit files only temporarily until next reboot\n"
|
||||
" --global Enable/disable/mask unit files globally\n"
|
||||
" --runtime Enable/disable/mask unit files temporarily until next\n"
|
||||
" reboot\n"
|
||||
" -f --force When enabling unit files, override existing symlinks\n"
|
||||
" When shutting down, execute action immediately\n"
|
||||
" --preset-mode= Apply only enable, only disable, or all presets\n"
|
||||
" --root=PATH Enable unit files in the specified root directory\n"
|
||||
" --root=PATH Enable/disable/mask unit files in the specified root\n"
|
||||
" directory\n"
|
||||
" -n --lines=INTEGER Number of journal entries to show\n"
|
||||
" -o --output=STRING Change journal output mode (short, short-precise,\n"
|
||||
" short-iso, short-iso-precise, short-full,\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user