From 0dc7fbcb0ce6a13427c3c362d777554ec55ec74a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Tue, 16 Mar 2021 18:47:31 +0100 Subject: 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). --- doc/it/includes/autogen_user_options.it.adoc | 30 ++++++++++++++++++++++++++++ doc/it/weechat_user.it.adoc | 2 ++ 2 files changed, 32 insertions(+) (limited to 'doc/it') 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 | <> + /set weechat.proxy.* | Proxy options. | network | /set weechat.network.* | Network/SSL options. +// TRANSLATION MISSING +| signal | /set weechat.signal.* | Signal options. | bar | <> + /set weechat.bar.* | Bar options. | layout | <> | Layouts. -- cgit v1.2.3