mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
systemd: use SIGTERM instead SIGQUIT, indent UPNP code, make client target
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
a4dda304d2
commit
3d7e93a688
3 changed files with 28 additions and 21 deletions
|
@ -17,7 +17,12 @@ PIDFile=/run/i2pd/i2pd.pid
|
|||
### Uncomment, if auto restart needed
|
||||
#Restart=on-failure
|
||||
|
||||
KillSignal=SIGQUIT
|
||||
# Use SIGTERM to stop i2pd immediately.
|
||||
# Some cleanup processes can delay stopping, so we set 30 seconds timeout and then SIGKILL i2pd.
|
||||
KillSignal=SIGTERM
|
||||
TimeoutStopSec=30s
|
||||
SendSIGKILL=yes
|
||||
|
||||
# If you have the patience waiting 10 min on restarting/stopping it, uncomment this.
|
||||
# i2pd stops accepting new tunnels and waits ~10 min while old ones do not die.
|
||||
#KillSignal=SIGINT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue