2018-02-02 21:29:28 +03:00
|
|
|
[Unit]
|
|
|
|
Description=I2P Router written in C++
|
|
|
|
Documentation=man:i2pd(1) https://i2pd.readthedocs.io/en/latest/
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=i2pd
|
|
|
|
Group=i2pd
|
|
|
|
RuntimeDirectory=i2pd
|
|
|
|
RuntimeDirectoryMode=0700
|
2018-03-05 20:30:02 +03:00
|
|
|
LogsDirectory=i2pd
|
|
|
|
LogsDirectoryMode=0700
|
2018-04-01 17:57:51 +03:00
|
|
|
Type=forking
|
2019-07-24 13:15:31 +03:00
|
|
|
ExecStart=/usr/sbin/i2pd --conf=/etc/i2pd/i2pd.conf --tunconf=/etc/i2pd/tunnels.conf --tunnelsdir=/etc/i2pd/tunnels.conf.d --pidfile=/run/i2pd/i2pd.pid --logfile=/var/log/i2pd/i2pd.log --daemon --service
|
|
|
|
ExecReload=/bin/sh -c "kill -HUP $MAINPID"
|
|
|
|
PIDFile=/run/i2pd/i2pd.pid
|
2018-02-02 21:29:28 +03:00
|
|
|
### Uncomment, if auto restart needed
|
|
|
|
#Restart=on-failure
|
|
|
|
|
2021-02-25 00:37:41 +03:00
|
|
|
# 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
|
|
|
|
|
2018-02-02 21:29:28 +03:00
|
|
|
# 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
|
|
|
|
#TimeoutStopSec=10m
|
|
|
|
|
2018-11-06 20:04:26 +03:00
|
|
|
# If you have problems with hanging i2pd, you can try increase this
|
2023-01-01 14:23:11 +03:00
|
|
|
LimitNOFILE=8192
|
2018-11-06 20:04:26 +03:00
|
|
|
# To enable write of coredump uncomment this
|
|
|
|
#LimitCORE=infinity
|
2018-02-02 21:29:28 +03:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|