From 337f351b6ec206bf46aa0a03df41ec485db8c04a Mon Sep 17 00:00:00 2001 From: Johann Bauer Date: Thu, 8 Dec 2016 15:12:18 +0100 Subject: [PATCH] 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 --- samples/systemd/electrumx.service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/systemd/electrumx.service b/samples/systemd/electrumx.service index 46107f3..808ff7b 100644 --- a/samples/systemd/electrumx.service +++ b/samples/systemd/electrumx.service @@ -6,6 +6,8 @@ After=network.target EnvironmentFile=/etc/electrumx.conf ExecStart=/usr/local/bin/electrumx_server.py User=electrumx +LimitNOFILE=8192 +TimeoutStopSec=30min [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target