/
nimbus@.service
63 lines (46 loc) · 1.36 KB
/
nimbus@.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[Unit]
Description=Nimubs Beacon Node (%I)
# Sources:
# https://nimbus.guide/beacon-node-systemd.html
# Start after network is up.
Wants=network-online.target
After=network-online.target
[Service]
# Run as nimbus:nimbus
User=nimbus
WorkingDirectory=~
# Default values for environmental variables
Environment= \
NETWORK=%i \
TCP_PORT=9000 \
UDP_PORT=9000 \
METRICS=false \
WEB3_URL=ws://localhost:8551 \
JWT_SECRET=/home/geth/geth/jwtsecret \
FEE_RECIPIENT=0x84af3D5824F0390b9510440B6ABB5CC02BB68ea1
# Network-specific environmental variables
EnvironmentFile=/home/nimbus/%i.conf
ExecStart=nimbus_beacon_node \
--non-interactive \
--metrics=${METRICS} \
--data-dir=data/${NETWORK} \
--network=${NETWORK} \
--web3-url=${WEB3_URL} \
--jwt-secret=${JWT_SECRET} \
--tcp-port=${TCP_PORT} \
--udp-port=${UDP_PORT} \
--enr-auto-update \
--suggested-fee-recipient=${FEE_RECIPIENT} \
--payload-builder \
--payload-builder-url=http://localhost:18550
# Give this time to stop before sending SIGKILL.
TimeoutStopSec=5min
# Restart if exits with any exit code.
Restart=always
# Delay restart by 5 sec.
# I've seen this value in many places, but may not be needed.
RestartSec=5
# Don't restart when Doppelganger detection has been activated
RestartPreventExitStatus=129
[Install]
WantedBy=multi-user.target