diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-03-16 18:47:31 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-03-16 18:47:31 +0100 |
commit | 0dc7fbcb0ce6a13427c3c362d777554ec55ec74a (patch) | |
tree | fdee3f8c05be225d32d28db6597710c8acb3e09c /doc/it | |
parent | bb41de8c0255887720f570e5f0594a497f9ea0a0 (diff) | |
download | weechat-0dc7fbcb0ce6a13427c3c362d777554ec55ec74a.zip |
core: add options to customize commands on system signals, quit by default on SIGHUP when not running headless (closes #1595)
New options to customize behavior on signals received, with the default
behavior:
- weechat.signal.sighup: quit in normal mode, reload config in headless
- weechat.signal.sigquit: quit
- weechat.signal.sigterm: quit
- weechat.signal.sigusr1: no command executed by default
- weechat.signal.sigusr2: no command executed by default
The signals SIGUSR1 and SIGUSR2 are introduced by this commit, so it's now
possible to run commands when they are received.
The SIGHUP signal makes now WeeChat quit, it was the behavior before version
2.9 of WeeChat (see commit de1e61f7cd50cbd1a99777fe6611642a51abf5f6).
Diffstat (limited to 'doc/it')
-rw-r--r-- | doc/it/includes/autogen_user_options.it.adoc | 30 | ||||
-rw-r--r-- | doc/it/weechat_user.it.adoc | 2 |
2 files changed, 32 insertions, 0 deletions
diff --git a/doc/it/includes/autogen_user_options.it.adoc b/doc/it/includes/autogen_user_options.it.adoc index 94c056eca..8fb4a6f6e 100644 --- a/doc/it/includes/autogen_user_options.it.adoc +++ b/doc/it/includes/autogen_user_options.it.adoc @@ -1308,6 +1308,36 @@ ** valori: on, off ** valore predefinito: `+on+` +* [[option_weechat.signal.sighup]] *weechat.signal.sighup* +** descrizione: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** tipo: stringa +** valori: qualsiasi stringa +** valore predefinito: `+"${if:${info:weechat_headless}?/reload:/quit -yes}"+` + +* [[option_weechat.signal.sigquit]] *weechat.signal.sigquit* +** descrizione: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** tipo: stringa +** valori: qualsiasi stringa +** valore predefinito: `+"/quit -yes"+` + +* [[option_weechat.signal.sigterm]] *weechat.signal.sigterm* +** descrizione: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** tipo: stringa +** valori: qualsiasi stringa +** valore predefinito: `+"/quit -yes"+` + +* [[option_weechat.signal.sigusr1]] *weechat.signal.sigusr1* +** descrizione: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** tipo: stringa +** valori: qualsiasi stringa +** valore predefinito: `+""+` + +* [[option_weechat.signal.sigusr2]] *weechat.signal.sigusr2* +** descrizione: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** tipo: stringa +** valori: qualsiasi stringa +** valore predefinito: `+""+` + * [[option_weechat.startup.command_after_plugins]] *weechat.startup.command_after_plugins* ** descrizione: pass:none[comando eseguito all'avvio di WeeChat, dopo il caricamento dei plugin (nota: il contenuto viene valutato, consultare /help eval)] ** tipo: stringa diff --git a/doc/it/weechat_user.it.adoc b/doc/it/weechat_user.it.adoc index 70d63701e..d806943cf 100644 --- a/doc/it/weechat_user.it.adoc +++ b/doc/it/weechat_user.it.adoc @@ -2585,6 +2585,8 @@ Sections in file _weechat.conf_: | proxy | <<command_weechat_proxy,/proxy>> + /set weechat.proxy.* | Proxy options. | network | /set weechat.network.* | Network/SSL options. +// TRANSLATION MISSING +| signal | /set weechat.signal.* | Signal options. | bar | <<command_weechat_bar,/bar>> + /set weechat.bar.* | Bar options. | layout | <<command_weechat_layout,/layout>> | Layouts. |