This commit is contained in:
parent
fa9e2b4ec4
commit
ca3245c4f0
|
@ -99,7 +99,7 @@ Nimbus `v22.6.0` brings support for the merge testnets Ropsten and Sepolia (plea
|
||||||
https://github.com/status-im/nimbus-eth2/pull/3679
|
https://github.com/status-im/nimbus-eth2/pull/3679
|
||||||
https://github.com/status-im/nimbus-eth2/pull/3780
|
https://github.com/status-im/nimbus-eth2/pull/3780
|
||||||
|
|
||||||
* The custom error code `1031` will signal a detected doppelganger on the network. This can be handled in the Nimbus's service supervisor to prevent an automatic restart:
|
* The custom error code `129` will signal a detected doppelganger on the network. This can be handled in the Nimbus's service supervisor to prevent an automatic restart:
|
||||||
https://github.com/status-im/nimbus-eth2/pull/3728
|
https://github.com/status-im/nimbus-eth2/pull/3728
|
||||||
|
|
||||||
* The Nimbus status bar can be configured to display the current version number:
|
* The Nimbus status bar can be configured to display the current version number:
|
||||||
|
|
|
@ -287,7 +287,7 @@ proc checkForPotentialDoppelganger(
|
||||||
|
|
||||||
# Avoid colliding with
|
# Avoid colliding with
|
||||||
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Process%20Exit%20Codes
|
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Process%20Exit%20Codes
|
||||||
const QuitDoppelganger = 1031
|
const QuitDoppelganger = 129
|
||||||
quit QuitDoppelganger
|
quit QuitDoppelganger
|
||||||
|
|
||||||
proc processAttestation*(
|
proc processAttestation*(
|
||||||
|
|
|
@ -35,7 +35,7 @@ curl -s https://raw.githubusercontent.com/status-im/nimbus-eth2/stable/scripts/p
|
||||||
The format of service files is documented in the [systemd manual](https://www.freedesktop.org/software/systemd/man/systemd.service.html).
|
The format of service files is documented in the [systemd manual](https://www.freedesktop.org/software/systemd/man/systemd.service.html).
|
||||||
|
|
||||||
!!! tip
|
!!! tip
|
||||||
Automatic restarts increase the risk that the doppelganger detection fails - set `RestartPreventExitStatus=1031` to prevent this from happening
|
Automatic restarts increase the risk that the doppelganger detection fails - set `RestartPreventExitStatus=129` to prevent this from happening
|
||||||
|
|
||||||
### 3. Configure your service
|
### 3. Configure your service
|
||||||
|
|
||||||
|
|
|
@ -144,8 +144,8 @@ Here is an example config file illustrating all of the above:
|
||||||
|
|
||||||
## Exit Codes
|
## Exit Codes
|
||||||
|
|
||||||
| Exit code | Description |
|
| Exit code | Description |
|
||||||
|-----------|---------|
|
|-----------|-----------------------------------------------------------------------|
|
||||||
| 0 | Successful exit |
|
| 0 | Successful exit |
|
||||||
| 1 | Generic failure or unspecified error |
|
| 1 | Generic failure or unspecified error |
|
||||||
| 1031 | Doppelganger detection; one might prefer not to restart automatically |
|
| 129 | Doppelganger detection; one might prefer not to restart automatically |
|
||||||
|
|
|
@ -51,7 +51,7 @@ TimeoutSec=1200
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
# Don't restart when Doppelganger detection has been activated
|
# Don't restart when Doppelganger detection has been activated
|
||||||
RestartPreventExitStatus=1031
|
RestartPreventExitStatus=129
|
||||||
|
|
||||||
ExecStart=/usr/bin/nimbus_beacon_node \
|
ExecStart=/usr/bin/nimbus_beacon_node \
|
||||||
--network=${NETWORK} \
|
--network=${NETWORK} \
|
||||||
|
|
Loading…
Reference in New Issue