2016-11-03 16:08:21 +00:00
|
|
|
[Unit]
|
|
|
|
Description=I2P Router written in C++
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=i2pd
|
|
|
|
Group=i2pd
|
2017-06-23 08:25:13 +00:00
|
|
|
RuntimeDirectory=i2pd
|
|
|
|
RuntimeDirectoryMode=0700
|
|
|
|
Type=simple
|
2016-11-03 16:08:21 +00:00
|
|
|
ExecStart=/usr/sbin/i2pd --conf=/etc/i2pd/i2pd.conf --pidfile=/var/run/i2pd/i2pd.pid --logfile=/var/log/i2pd/i2pd.log --daemon --service
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
PIDFile=/var/run/i2pd/i2pd.pid
|
|
|
|
### Uncomment, if auto restart needed
|
|
|
|
#Restart=on-failure
|
|
|
|
|
|
|
|
### Use SIGINT for gracefull stop daemon.
|
|
|
|
# i2pd stops accepting new tunnels and waits ~10 min while old ones do not die.
|
|
|
|
KillSignal=SIGINT
|
|
|
|
TimeoutStopSec=10m
|
|
|
|
|
|
|
|
# If you have problems with hunging i2pd, you can try enable this
|
|
|
|
#LimitNOFILE=4096
|
|
|
|
PrivateDevices=yes
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|