added systemd unit, added last-dist in Makefile, changed logs and pid dirs for debian packages

This commit is contained in:
atnaguzin 2016-10-31 14:37:36 +03:00
parent ef3030abe5
commit 3d0818ec53
13 changed files with 57 additions and 14 deletions

24
debian/i2pd.service vendored Normal file
View file

@ -0,0 +1,24 @@
[Unit]
Description=I2P Router written in C++
After=network.target
[Service]
User=i2pd
Group=i2pd
Type=forking
ExecStart=/usr/sbin/i2pd --conf=/etc/i2pd/i2pd.conf --pidfile=/var/run/i2pd/i2pd.pid --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
LimitNOFILE=4096
PrivateDevices=yes
[Install]
WantedBy=multi-user.target