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 | |
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')
-rw-r--r-- | doc/de/includes/autogen_user_options.de.adoc | 30 | ||||
-rw-r--r-- | doc/de/weechat_user.de.adoc | 2 | ||||
-rw-r--r-- | doc/en/includes/autogen_user_options.en.adoc | 30 | ||||
-rw-r--r-- | doc/en/weechat_dev.en.adoc | 2 | ||||
-rw-r--r-- | doc/en/weechat_user.en.adoc | 1 | ||||
-rw-r--r-- | doc/fr/includes/autogen_user_options.fr.adoc | 30 | ||||
-rw-r--r-- | doc/fr/weechat_dev.fr.adoc | 2 | ||||
-rw-r--r-- | doc/fr/weechat_user.fr.adoc | 1 | ||||
-rw-r--r-- | doc/it/includes/autogen_user_options.it.adoc | 30 | ||||
-rw-r--r-- | doc/it/weechat_user.it.adoc | 2 | ||||
-rw-r--r-- | doc/ja/includes/autogen_user_options.ja.adoc | 30 | ||||
-rw-r--r-- | doc/ja/weechat_dev.ja.adoc | 4 | ||||
-rw-r--r-- | doc/ja/weechat_user.ja.adoc | 2 | ||||
-rw-r--r-- | doc/pl/includes/autogen_user_options.pl.adoc | 30 | ||||
-rw-r--r-- | doc/pl/weechat_user.pl.adoc | 2 |
15 files changed, 198 insertions, 0 deletions
diff --git a/doc/de/includes/autogen_user_options.de.adoc b/doc/de/includes/autogen_user_options.de.adoc index cbf9ce760..6948cac47 100644 --- a/doc/de/includes/autogen_user_options.de.adoc +++ b/doc/de/includes/autogen_user_options.de.adoc @@ -1308,6 +1308,36 @@ ** Werte: on, off ** Standardwert: `+on+` +* [[option_weechat.signal.sighup]] *weechat.signal.sighup* +** Beschreibung: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** Typ: Zeichenkette +** Werte: beliebige Zeichenkette +** Standardwert: `+"${if:${info:weechat_headless}?/reload:/quit -yes}"+` + +* [[option_weechat.signal.sigquit]] *weechat.signal.sigquit* +** Beschreibung: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** Typ: Zeichenkette +** Werte: beliebige Zeichenkette +** Standardwert: `+"/quit -yes"+` + +* [[option_weechat.signal.sigterm]] *weechat.signal.sigterm* +** Beschreibung: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** Typ: Zeichenkette +** Werte: beliebige Zeichenkette +** Standardwert: `+"/quit -yes"+` + +* [[option_weechat.signal.sigusr1]] *weechat.signal.sigusr1* +** Beschreibung: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** Typ: Zeichenkette +** Werte: beliebige Zeichenkette +** Standardwert: `+""+` + +* [[option_weechat.signal.sigusr2]] *weechat.signal.sigusr2* +** Beschreibung: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** Typ: Zeichenkette +** Werte: beliebige Zeichenkette +** Standardwert: `+""+` + * [[option_weechat.startup.command_after_plugins]] *weechat.startup.command_after_plugins* ** Beschreibung: pass:none[Nach dem Start von WeeChat wird dieser Befehl aufgerufen. Dies geschieht nachdem die Erweiterungen geladen worden sind (mehrere Befehle sind durch ";" zu trennen) (Hinweis: Inhalt wird evaluiert, siehe /help eval)] ** Typ: Zeichenkette diff --git a/doc/de/weechat_user.de.adoc b/doc/de/weechat_user.de.adoc index e492aea6d..7cf4ac594 100644 --- a/doc/de/weechat_user.de.adoc +++ b/doc/de/weechat_user.de.adoc @@ -2453,6 +2453,8 @@ Sektion in Datei _weechat.conf_: | proxy | <<command_weechat_proxy,/proxy>> + /set weechat.proxy.* | Proxy Optionen. | network | /set weechat.network.* | Netzwerk/SSL Optionen. +// TRANSLATION MISSING +| signal | /set weechat.signal.* | Signal options. | bar | <<command_weechat_bar,/bar>> + /set weechat.bar.* | Optionen für die Bars. | layout | <<command_weechat_layout,/layout>> | Layouts. diff --git a/doc/en/includes/autogen_user_options.en.adoc b/doc/en/includes/autogen_user_options.en.adoc index 41ff189ec..41a23e50e 100644 --- a/doc/en/includes/autogen_user_options.en.adoc +++ b/doc/en/includes/autogen_user_options.en.adoc @@ -1308,6 +1308,36 @@ ** values: on, off ** default value: `+on+` +* [[option_weechat.signal.sighup]] *weechat.signal.sighup* +** description: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** type: string +** values: any string +** default value: `+"${if:${info:weechat_headless}?/reload:/quit -yes}"+` + +* [[option_weechat.signal.sigquit]] *weechat.signal.sigquit* +** description: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** type: string +** values: any string +** default value: `+"/quit -yes"+` + +* [[option_weechat.signal.sigterm]] *weechat.signal.sigterm* +** description: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** type: string +** values: any string +** default value: `+"/quit -yes"+` + +* [[option_weechat.signal.sigusr1]] *weechat.signal.sigusr1* +** description: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** type: string +** values: any string +** default value: `+""+` + +* [[option_weechat.signal.sigusr2]] *weechat.signal.sigusr2* +** description: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** type: string +** values: any string +** default value: `+""+` + * [[option_weechat.startup.command_after_plugins]] *weechat.startup.command_after_plugins* ** description: pass:none[command executed when WeeChat starts, after loading plugins (note: content is evaluated, see /help eval)] ** type: string diff --git a/doc/en/weechat_dev.en.adoc b/doc/en/weechat_dev.en.adoc index 7a30165a5..d7474a971 100644 --- a/doc/en/weechat_dev.en.adoc +++ b/doc/en/weechat_dev.en.adoc @@ -140,6 +140,7 @@ WeeChat "core" is located in following directories: | wee-secure.c | Secured data functions. | wee-secure-buffer.c | Secured data buffer. | wee-secure-config.c | Secured data options (file sec.conf). +| wee-signal.c | Signal functions. | wee-string.c | Functions on strings. | wee-upgrade-file.c | Internal upgrade system. | wee-upgrade.c | Upgrade for WeeChat core (buffers, lines, history, ...). @@ -401,6 +402,7 @@ WeeChat "core" is located in following directories: | test-core-infolist.cpp | Tests: infolists. | test-core-list.cpp | Tests: lists. | test-core-secure.cpp | Tests: secured data. +| test-core-signal.cpp | Tests: signals. | test-core-string.cpp | Tests: strings. | test-core-url.cpp | Tests: URLs. | test-core-utf8.cpp | Tests: UTF-8. diff --git a/doc/en/weechat_user.en.adoc b/doc/en/weechat_user.en.adoc index 78788421c..b31fa0e42 100644 --- a/doc/en/weechat_user.en.adoc +++ b/doc/en/weechat_user.en.adoc @@ -2410,6 +2410,7 @@ Sections in file _weechat.conf_: | proxy | <<command_weechat_proxy,/proxy>> + /set weechat.proxy.* | Proxy options. | network | /set weechat.network.* | Network/SSL options. +| signal | /set weechat.signal.* | Signal options. | bar | <<command_weechat_bar,/bar>> + /set weechat.bar.* | Bar options. | layout | <<command_weechat_layout,/layout>> | Layouts. diff --git a/doc/fr/includes/autogen_user_options.fr.adoc b/doc/fr/includes/autogen_user_options.fr.adoc index d396932cf..3c80de870 100644 --- a/doc/fr/includes/autogen_user_options.fr.adoc +++ b/doc/fr/includes/autogen_user_options.fr.adoc @@ -1308,6 +1308,36 @@ ** valeurs: on, off ** valeur par défaut: `+on+` +* [[option_weechat.signal.sighup]] *weechat.signal.sighup* +** description: pass:none[commande à exécuter lorsque le signal est reçu, plusieurs commandes peuvent être séparées par des point-virgules (note : le contenu est évalué, voir /help eval)] +** type: chaîne +** valeurs: toute chaîne +** valeur par défaut: `+"${if:${info:weechat_headless}?/reload:/quit -yes}"+` + +* [[option_weechat.signal.sigquit]] *weechat.signal.sigquit* +** description: pass:none[commande à exécuter lorsque le signal est reçu, plusieurs commandes peuvent être séparées par des point-virgules (note : le contenu est évalué, voir /help eval)] +** type: chaîne +** valeurs: toute chaîne +** valeur par défaut: `+"/quit -yes"+` + +* [[option_weechat.signal.sigterm]] *weechat.signal.sigterm* +** description: pass:none[commande à exécuter lorsque le signal est reçu, plusieurs commandes peuvent être séparées par des point-virgules (note : le contenu est évalué, voir /help eval)] +** type: chaîne +** valeurs: toute chaîne +** valeur par défaut: `+"/quit -yes"+` + +* [[option_weechat.signal.sigusr1]] *weechat.signal.sigusr1* +** description: pass:none[commande à exécuter lorsque le signal est reçu, plusieurs commandes peuvent être séparées par des point-virgules (note : le contenu est évalué, voir /help eval)] +** type: chaîne +** valeurs: toute chaîne +** valeur par défaut: `+""+` + +* [[option_weechat.signal.sigusr2]] *weechat.signal.sigusr2* +** description: pass:none[commande à exécuter lorsque le signal est reçu, plusieurs commandes peuvent être séparées par des point-virgules (note : le contenu est évalué, voir /help eval)] +** type: chaîne +** valeurs: toute chaîne +** valeur par défaut: `+""+` + * [[option_weechat.startup.command_after_plugins]] *weechat.startup.command_after_plugins* ** description: pass:none[commande exécutée quand WeeChat démarre, après le chargement des extensions (note : le contenu est évalué, voir /help eval)] ** type: chaîne diff --git a/doc/fr/weechat_dev.fr.adoc b/doc/fr/weechat_dev.fr.adoc index d4d8fa113..36d917d60 100644 --- a/doc/fr/weechat_dev.fr.adoc +++ b/doc/fr/weechat_dev.fr.adoc @@ -142,6 +142,7 @@ Le cœur de WeeChat est situé dans les répertoires suivants : | wee-secure.c | Fonctions pour les données sécurisées. | wee-secure-buffer.c | Tampon pour les données sécurisées. | wee-secure-config.c | Options des données sécurisées (fichier sec.conf). +| wee-signal.c | Fonctions sur les signaux. | wee-string.c | Fonctions sur les chaînes de caractères. | wee-upgrade-file.c | Système de mise à jour interne. | wee-upgrade.c | Mise à jour du cœur de WeeChat (tampons, lignes, historique, ...). @@ -403,6 +404,7 @@ Le cœur de WeeChat est situé dans les répertoires suivants : | test-core-infolist.cpp | Tests : infolists. | test-core-list.cpp | Tests : listes. | test-core-secure.cpp | Tests : données sécurisées. +| test-core-signal.cpp | Tests : signaux. | test-core-string.cpp | Tests : chaînes. | test-core-url.cpp | Tests : URLs. | test-core-utf8.cpp | Tests : UTF-8. diff --git a/doc/fr/weechat_user.fr.adoc b/doc/fr/weechat_user.fr.adoc index 8274f8241..fb058e4e7 100644 --- a/doc/fr/weechat_user.fr.adoc +++ b/doc/fr/weechat_user.fr.adoc @@ -2493,6 +2493,7 @@ Sections dans le fichier _weechat.conf_ : | proxy | <<command_weechat_proxy,/proxy>> + /set weechat.proxy.* | Options des proxies. | network | /set weechat.network.* | Options réseau/SSL. +| signal | /set weechat.signal.* | Options sur les signaux. | bar | <<command_weechat_bar,/bar>> + /set weechat.bar.* | Options des barres. | layout | <<command_weechat_layout,/layout>> | Dispositions. 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. diff --git a/doc/ja/includes/autogen_user_options.ja.adoc b/doc/ja/includes/autogen_user_options.ja.adoc index 4925e6803..db2bcf75d 100644 --- a/doc/ja/includes/autogen_user_options.ja.adoc +++ b/doc/ja/includes/autogen_user_options.ja.adoc @@ -1308,6 +1308,36 @@ ** 値: on, off ** デフォルト値: `+on+` +* [[option_weechat.signal.sighup]] *weechat.signal.sighup* +** 説明: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** タイプ: 文字列 +** 値: 未制約文字列 +** デフォルト値: `+"${if:${info:weechat_headless}?/reload:/quit -yes}"+` + +* [[option_weechat.signal.sigquit]] *weechat.signal.sigquit* +** 説明: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** タイプ: 文字列 +** 値: 未制約文字列 +** デフォルト値: `+"/quit -yes"+` + +* [[option_weechat.signal.sigterm]] *weechat.signal.sigterm* +** 説明: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** タイプ: 文字列 +** 値: 未制約文字列 +** デフォルト値: `+"/quit -yes"+` + +* [[option_weechat.signal.sigusr1]] *weechat.signal.sigusr1* +** 説明: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** タイプ: 文字列 +** 値: 未制約文字列 +** デフォルト値: `+""+` + +* [[option_weechat.signal.sigusr2]] *weechat.signal.sigusr2* +** 説明: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** タイプ: 文字列 +** 値: 未制約文字列 +** デフォルト値: `+""+` + * [[option_weechat.startup.command_after_plugins]] *weechat.startup.command_after_plugins* ** 説明: pass:none[WeeChat が実行され、プラグインのロード後に実行されるコマンド (注意: 値は評価されます、/help eval を参照してください)] ** タイプ: 文字列 diff --git a/doc/ja/weechat_dev.ja.adoc b/doc/ja/weechat_dev.ja.adoc index b77e1c426..9d2b712c1 100644 --- a/doc/ja/weechat_dev.ja.adoc +++ b/doc/ja/weechat_dev.ja.adoc @@ -148,6 +148,8 @@ WeeChat "core" は以下のディレクトリに配置されています: | wee-secure.c | データ保護用の関数 | wee-secure-buffer.c | データ保護用のバッファ | wee-secure-config.c | 安全なデータオプション (sec.conf ファイル) +// TRANSLATION MISSING +| wee-signal.c | Signal functions. | wee-string.c | 文字列関数 | wee-upgrade-file.c | 内部アップグレードシステム | wee-upgrade.c | WeeChat コアのアップグレード (バッファ、行、履歴、...) @@ -413,6 +415,8 @@ WeeChat "core" は以下のディレクトリに配置されています: | test-core-infolist.cpp | テスト: インフォリスト | test-core-list.cpp | テスト: リスト | test-core-secure.cpp | テスト: データ保護 +// TRANSLATION MISSING +| test-core-signal.cpp | テスト: signals. | test-core-string.cpp | テスト: 文字列 | test-core-url.cpp | テスト: URL | test-core-utf8.cpp | テスト: UTF-8 diff --git a/doc/ja/weechat_user.ja.adoc b/doc/ja/weechat_user.ja.adoc index 05b1b1a03..8cf81803b 100644 --- a/doc/ja/weechat_user.ja.adoc +++ b/doc/ja/weechat_user.ja.adoc @@ -2471,6 +2471,8 @@ _weechat.conf_ ファイル内のセクション: | proxy | <<command_weechat_proxy,/proxy>> + /set weechat.proxy.* | プロキシオプション | network | /set weechat.network.* | ネットワーク/SSL オプション +// TRANSLATION MISSING +| signal | /set weechat.signal.* | Signal options. | bar | <<command_weechat_bar,/bar>> + /set weechat.bar.* | バーオプション | layout | <<command_weechat_layout,/layout>> | レイアウト diff --git a/doc/pl/includes/autogen_user_options.pl.adoc b/doc/pl/includes/autogen_user_options.pl.adoc index 401277e96..34c850338 100644 --- a/doc/pl/includes/autogen_user_options.pl.adoc +++ b/doc/pl/includes/autogen_user_options.pl.adoc @@ -1308,6 +1308,36 @@ ** wartości: on, off ** domyślna wartość: `+on+` +* [[option_weechat.signal.sighup]] *weechat.signal.sighup* +** opis: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** typ: ciąg +** wartości: dowolny ciąg +** domyślna wartość: `+"${if:${info:weechat_headless}?/reload:/quit -yes}"+` + +* [[option_weechat.signal.sigquit]] *weechat.signal.sigquit* +** opis: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** typ: ciąg +** wartości: dowolny ciąg +** domyślna wartość: `+"/quit -yes"+` + +* [[option_weechat.signal.sigterm]] *weechat.signal.sigterm* +** opis: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** typ: ciąg +** wartości: dowolny ciąg +** domyślna wartość: `+"/quit -yes"+` + +* [[option_weechat.signal.sigusr1]] *weechat.signal.sigusr1* +** opis: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** typ: ciąg +** wartości: dowolny ciąg +** domyślna wartość: `+""+` + +* [[option_weechat.signal.sigusr2]] *weechat.signal.sigusr2* +** opis: pass:none[command to execute when the signal is received, multiple commands can be separated by semicolons (note: content is evaluated, see /help eval)] +** typ: ciąg +** wartości: dowolny ciąg +** domyślna wartość: `+""+` + * [[option_weechat.startup.command_after_plugins]] *weechat.startup.command_after_plugins* ** opis: pass:none[komenda wykonana kiedy WeeChat jest uruchamiany, po załadowaniu wtyczek (uwaga: zawartość jest przetwarzana, zobacz /help eval)] ** typ: ciąg diff --git a/doc/pl/weechat_user.pl.adoc b/doc/pl/weechat_user.pl.adoc index 353a7fc50..5ea08817b 100644 --- a/doc/pl/weechat_user.pl.adoc +++ b/doc/pl/weechat_user.pl.adoc @@ -2426,6 +2426,8 @@ Sekcje w pliku _weechat.conf_: | proxy | <<command_weechat_proxy,/proxy>> + /set weechat.proxy.* | Opcje proxy. | network | /set weechat.network.* | Opcje sieci/SSL. +// TRANSLATION MISSING +| signal | /set weechat.signal.* | Signal options. | bar | <<command_weechat_bar,/bar>> + /set weechat.bar.* | Opcje pasków. | layout | <<command_weechat_layout,/layout>> | Układy. |