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/ja | |
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/ja')
-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 |
3 files changed, 36 insertions, 0 deletions
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>> | レイアウト |