Merge pull request #1242 from mDuo13/auto_upgrade_no_restart

Upgrade script no longer restarts the server. [v1.8.0]
This commit is contained in:
Rome Reginelli
2021-11-18 12:29:04 -08:00
committed by GitHub
3 changed files with 17 additions and 7 deletions

View File

@@ -20,7 +20,13 @@ Linuxでは、`rippled`が1回限りの`cron`構成を使用して最新バー
$ sudo ln -s /opt/ripple/etc/update-rippled-cron /etc/cron.d/
このcron構成は、インストール済みの`rippled`パッケージを新版のリリース後1時間以内に更新するためのスクリプトを実行します。同時に更新を実行しているすべてのサーバーが停止する可能性を抑えるため、このスクリプトはランダムな分数最大で59で更新を遅延して行います。
このcron構成は、インストール済みの`rippled`パッケージを新版のリリース後1時間以内に更新するためのスクリプトを実行します。同時に更新を実行しているすべてのサーバーが停止する可能性を抑えるため、このスクリプトは`rippled`サービスを再起動しません。手動再起動しますまで、以前のバージョンを実行し続けます。[新規: rippled 1.8.0][]
3. 新しいリリースが公開された後、`rippled`サービスを手動再起動する。
sudo systemctl restart rippled.service
**注意:** 将来的には、Rippleのリポジトリが変更された場合に、更新を検索するスクリプトが実行されるURLの手動更新が必要となることがあります。必要な変更についての最新情報は、[XRP Ledgerブログ](/blog/)または[ripple-serverメーリングリスト](https://groups.google.com/forum/#!forum/ripple-server)でお知らせします。

View File

@@ -18,9 +18,13 @@ To set up automatic updates, complete the following steps:
2. Create a symlink in your `cron.d` folder to the `/opt/ripple/etc/update-rippled-cron` config file:
$ sudo ln -s /opt/ripple/etc/update-rippled-cron /etc/cron.d/
sudo ln -s /opt/ripple/etc/update-rippled-cron /etc/cron.d/
This configuration runs a script to update the installed `rippled` package within an hour of each new release. To reduce the chance of outages from all servers updating simultaneously, the script delays the update for a random number of minutes, up to 59.
This configuration runs a script to update the installed `rippled` package within an hour of each new release. To avoid network instability from too many servers updating at the same time, this script does not automatically restart the server, so it continues to run the old version until it restarts. [Updated in: rippled 1.8.0][]
3. **Whenever a new release comes out,** you must manually restart the `rippled` service to switch to the updated software.
sudo systemctl restart rippled.service
**Caution:** In the future, it is possible that changes to Ripple's repositories may require manual intervention to update the URLs where your script searches for updates. Stay tuned to the [XRP Ledger Blog](/blog/) or the [ripple-server mailing list](https://groups.google.com/forum/#!forum/ripple-server) for announcements on any required changes.

View File

@@ -18,7 +18,7 @@ labels:
1. `rippled` 1.7.0にその以前のバージョンから更新する場合は、リポジトリを再度追加して、Rippleの更新されたGPGキーを取得します。それ以外の場合は、この手順をスキップしてください。
$ cat << REPOFILE | sudo tee /etc/yum.repos.d/ripple.repo
cat << REPOFILE | sudo tee /etc/yum.repos.d/ripple.repo
[ripple-stable]
name=XRP Ledger Packages
enabled=1
@@ -30,15 +30,15 @@ labels:
1. 最新の`rippled`パッケージをダウンロードしてインストールします
$ sudo yum update rippled
sudo yum update rippled
2. `systemd`ユニットファイルを再度読み込みます
$ sudo systemctl daemon-reload
sudo systemctl daemon-reload
3. `rippled`サービスを再起動します
$ sudo service rippled restart
sudo systemctl restart rippled.service
## 関連項目