Tweak systemd unit file settings
- Set the open file limit to 8192, which should hopefully be enough - Set the timeout for process termination to 30 minutes. Systemd will send another SIGTERM after 30 minutes and then a SIGKILL after 60 minutes. That should be plenty of time for electrumx to cleanly finish whatever it's doing
This commit is contained in:
parent
e908466e1e
commit
337f351b6e
@ -6,6 +6,8 @@ After=network.target
|
|||||||
EnvironmentFile=/etc/electrumx.conf
|
EnvironmentFile=/etc/electrumx.conf
|
||||||
ExecStart=/usr/local/bin/electrumx_server.py
|
ExecStart=/usr/local/bin/electrumx_server.py
|
||||||
User=electrumx
|
User=electrumx
|
||||||
|
LimitNOFILE=8192
|
||||||
|
TimeoutStopSec=30min
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user