1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 19:53:13 +02:00

core: add option "-quit" for command /upgrade (save session and quit without restarting WeeChat, for delayed restoration)

This commit is contained in:
Sebastien Helleu
2012-10-18 20:59:56 +02:00
parent 93d3198b70
commit ed506558e8
24 changed files with 507 additions and 212 deletions
+20 -9
View File
@@ -587,19 +587,30 @@ Beispiele:
[[command_weechat_upgrade]]
[command]*`upgrade`* Aktualisiert WeeChat ohne die Verbindung zum Server zu trennen::
........................................
/upgrade [<path_to_binary>]
/upgrade [<path_to_binary>|-quit]
path_to_binary: Pfad zu einer ausführbaren WeeChat Binärdatei (Standardeinstellung ist die aktuell ausführbare Datei)
path_to_binary: path to WeeChat binary (default is current binary)
-quit: close *ALL* connections, save session and quit WeeChat, which makes possible a delayed restoration (see below)
Dieser Befehl führt ein Upgrade von WeeChat durch und startet die laufende Sitzung neu. Die neue Version von WeeChat muss deshalb vorab kompiliert oder mit einem Paketmanager installiert worden sein, bevor der Befehl ausgeführt werden kann.
This command upgrades and reloads a running WeeChat session. The new WeeChat binary must have been compiled or installed with a package manager before running this command.
Hinweis: SSL Verbindungen werden während eines Upgrades unterbrochen, da solche Verbindungen zur Zeit nicht mit GnuTLS gehalten werden können. Nach einem erfolgten Upgrade findet eine automatische Verbindung zu diesen Servern statt.
Note: SSL connections are lost during upgrade, because reload of SSL sessions is currently not possible with GnuTLS. There is automatic reconnection after upgrade.
Der Upgrade Vorgang besteht aus vier Schritten:
1. Speicherung der Session in Dateien für Core und Erweiterungen (buffers, history, ..)
2. alle Erweiterungen werden ausgeschaltet (Konfigurationen *.conf werden gesichert)
3. Speicherung der WeeChat Konfiguration (weechat.conf)
4. ausführen einer neuen WeeChat Session.
Upgrade process has 4 steps:
1. save session into files for core and plugins (buffers, history, ..)
2. unload all plugins (configuration files (*.conf) are written on disk)
3. save WeeChat configuration (weechat.conf)
4. execute new WeeChat binary and reload session.
With option "-quit", the process is slightly different:
1. close *ALL* connections (irc, xfer, relay, ...)
2. save session into files (*.upgrade)
3. unload all plugins
4. save WeeChat configuration
5. quit WeeChat
Then later you can restore session with command: weechat-curses --upgrade
IMPORTANT: you must restore the session with exactly same configuration (files *.conf).
It is possible to restore WeeChat session on another machine if you copy the content of directory "~/.weechat"
........................................
[[command_weechat_uptime]]
+12 -1
View File
@@ -587,9 +587,10 @@ Examples:
[[command_weechat_upgrade]]
[command]*`upgrade`* upgrade WeeChat without disconnecting from servers::
........................................
/upgrade [<path_to_binary>]
/upgrade [<path_to_binary>|-quit]
path_to_binary: path to WeeChat binary (default is current binary)
-quit: close *ALL* connections, save session and quit WeeChat, which makes possible a delayed restoration (see below)
This command upgrades and reloads a running WeeChat session. The new WeeChat binary must have been compiled or installed with a package manager before running this command.
@@ -600,6 +601,16 @@ Upgrade process has 4 steps:
2. unload all plugins (configuration files (*.conf) are written on disk)
3. save WeeChat configuration (weechat.conf)
4. execute new WeeChat binary and reload session.
With option "-quit", the process is slightly different:
1. close *ALL* connections (irc, xfer, relay, ...)
2. save session into files (*.upgrade)
3. unload all plugins
4. save WeeChat configuration
5. quit WeeChat
Then later you can restore session with command: weechat-curses --upgrade
IMPORTANT: you must restore the session with exactly same configuration (files *.conf).
It is possible to restore WeeChat session on another machine if you copy the content of directory "~/.weechat"
........................................
[[command_weechat_uptime]]
+1 -1
View File
@@ -7777,7 +7777,7 @@ Arguments:
command `/quit` issued by user
| weechat | upgrade |
- |
string: "quit" if "-quit" argument was given for /upgrade, otherwise NULL |
command `/upgrade` issued by user
| weechat | upgrade_ended +
+13 -2
View File
@@ -587,9 +587,10 @@ Exemples:
[[command_weechat_upgrade]]
[command]*`upgrade`* mettre à jour WeeChat sans se déconnecter des serveurs::
........................................
/upgrade [<chemin_vers_binaire>]
/upgrade [<chemin_vers_binaire>|-quit]
chemin_vers_binaire: chemin vers le binaire WeeChat (par défaut le binaire courant)
-quit: fermer *TOUTES* les connexions, sauver la session et quitter, ce qui rend possible une restauration différée (voir ci-dessous)
Cette commande met à jour et recharge une session de WeeChat qui tourne. Le nouveau binaire WeeChat doit avoir été compilé ou installé via un gestionnaire de paquet avant de lancer cette commande.
@@ -599,7 +600,17 @@ Le processus de mise à jour comporte 4 étapes :
1. sauvegarder la session pour le coeur et les extensions (tampons, historique, ...)
2. décharger toutes les extensions (les fichiers de configuration (*.conf) sont écrits sur disque)
3. sauvegarder la configuration WeeChat (weechat.conf)
4. exécuter le nouveau binaire WeeChat et recharger la session.
4. exécuter le nouveau binaire WeeChat et recharger la session.<
Avec l'option "-quit", le processus est légèrement différent :
1. fermer *TOUTES* les connexions
2. sauvegarder la session (fichiers *.upgrade)
3. décharger les extensions
4. sauvegarder la configuration WeeChat
5. quitter WeeChat
Et plus tard vous pouvez restaurer la session avec la commande: weechat-curses --upgrade
IMPORTANT: vous devez restaurer la session avec exactement la même configuration (fichiers *.conf).
Il est également possible de restaurer la session WeeChat sur une autre machine si vous y copiez le contenu du répertoire "~/.weechat".
........................................
[[command_weechat_uptime]]
+1 -1
View File
@@ -7888,7 +7888,7 @@ Paramètres :
la commande `/quit` a été exécutée par l'utilisateur
| weechat | upgrade |
- |
chaîne : "quit" si le paramètre "-quit" a été donné pour /upgrade, sinon NULL |
la commande `/upgrade` a été exécutée par l'utilisateur
| weechat | upgrade_ended +
+20 -9
View File
@@ -587,19 +587,30 @@ Esempi:
[[command_weechat_upgrade]]
[command]*`upgrade`* aggiorna WeeChat senza disconnettere dai server::
........................................
/upgrade [<path_del_binario>]
/upgrade [<path_to_binary>|-quit]
path_del_binario: path del binario di WeeChat (di default è il corrente)
path_to_binary: path to WeeChat binary (default is current binary)
-quit: close *ALL* connections, save session and quit WeeChat, which makes possible a delayed restoration (see below)
Questo comando aggiorna e ricarica una sessione di WeeChat in esecuzione. Il nuovo binario di WeeChat deve essere stato compilato o installato con un gestore pacchetti prima di eseguire questo comando.
This command upgrades and reloads a running WeeChat session. The new WeeChat binary must have been compiled or installed with a package manager before running this command.
Nota: le connessioni SSL vengono perdute durante l'aggiornamento, poiché il nuovo caricamento delle sessioni SSL non è ancora possibile con GnuTLS. La riconnessione automatica avviene dopo l'aggiornamento.
Note: SSL connections are lost during upgrade, because reload of SSL sessions is currently not possible with GnuTLS. There is automatic reconnection after upgrade.
Il processo di aggiornamento è diviso in 4 fasi:
1. salva la sessione in file per il core e i plugin (buffer, cronologia, ..)
2. scarica tutti i plugin (i file di configurazione (*.conf) vengono scritti su disco)
3. salva la configurazione di WeeChat (weechat.conf)
4. esegui il nuovo binario di WeeChat e carica la sessione.
Upgrade process has 4 steps:
1. save session into files for core and plugins (buffers, history, ..)
2. unload all plugins (configuration files (*.conf) are written on disk)
3. save WeeChat configuration (weechat.conf)
4. execute new WeeChat binary and reload session.
With option "-quit", the process is slightly different:
1. close *ALL* connections (irc, xfer, relay, ...)
2. save session into files (*.upgrade)
3. unload all plugins
4. save WeeChat configuration
5. quit WeeChat
Then later you can restore session with command: weechat-curses --upgrade
IMPORTANT: you must restore the session with exactly same configuration (files *.conf).
It is possible to restore WeeChat session on another machine if you copy the content of directory "~/.weechat"
........................................
[[command_weechat_uptime]]
+2 -1
View File
@@ -7844,8 +7844,9 @@ Argomenti:
string: argomenti per /quit |
comando `/quit` digitato dall'utente
// TRANSLATION MISSING
| weechat | upgrade |
- |
string: "quit" if "-quit" argument was given for /upgrade, otherwise NULL |
comando `/upgrade` digitato dall'utente
| weechat | upgrade_ended +
+20 -9
View File
@@ -587,19 +587,30 @@ option: オプションの名前 ("*" で始めるか終わるかすれば大量
[[command_weechat_upgrade]]
[command]*`upgrade`* サーバとの接続を維持して WeeChat をアップグレード::
........................................
/upgrade [<path_to_binary>]
/upgrade [<path_to_binary>|-quit]
path_to_binary: WeeChat バイナリへのパス (デフォルトは現在のバイナリ)
path_to_binary: path to WeeChat binary (default is current binary)
-quit: close *ALL* connections, save session and quit WeeChat, which makes possible a delayed restoration (see below)
このコマンドは起動中の WeeChat セッションのアップグレードと再読み込みを行います。このコマンドを実行する前に、新しい WeeChat バイナリをコンパイルするか、パッケージマネージャでインストールしなければいけません。
This command upgrades and reloads a running WeeChat session. The new WeeChat binary must have been compiled or installed with a package manager before running this command.
注意: SSL 接続はアップグレード中に破棄されます、これは今のところ GnuTLS では SSL セッションのリロードができないからです。アップグレードの後に自動的に再接続されます。
Note: SSL connections are lost during upgrade, because reload of SSL sessions is currently not possible with GnuTLS. There is automatic reconnection after upgrade.
アップグレードは 4 つの手順を踏みます:
1. コアとプラグイン (バッファ、履歴、...) のセッションをファイルに保存
2. 全てのプラグインをアンロード (設定ファイル (*.conf) はディスクに書き込まれます)
3. WeeChat 設定を保存 (weechat.conf)
4. 新しい WeeChat バイナリを実行してセッションをリロード。
Upgrade process has 4 steps:
1. save session into files for core and plugins (buffers, history, ..)
2. unload all plugins (configuration files (*.conf) are written on disk)
3. save WeeChat configuration (weechat.conf)
4. execute new WeeChat binary and reload session.
With option "-quit", the process is slightly different:
1. close *ALL* connections (irc, xfer, relay, ...)
2. save session into files (*.upgrade)
3. unload all plugins
4. save WeeChat configuration
5. quit WeeChat
Then later you can restore session with command: weechat-curses --upgrade
IMPORTANT: you must restore the session with exactly same configuration (files *.conf).
It is possible to restore WeeChat session on another machine if you copy the content of directory "~/.weechat"
........................................
[[command_weechat_uptime]]