i2pd/contrib/rpm/i2pd.service

28 lines
753 B
SYSTEMD
Raw Normal View History

2016-10-20 13:18:59 +03:00
[Unit]
2018-01-22 21:55:12 +03:00
Description=I2P Router written in C++
2016-10-20 13:18:59 +03:00
After=network.target
[Service]
User=i2pd
Group=i2pd
2018-01-22 21:55:12 +03:00
RuntimeDirectory=i2pd
RuntimeDirectoryMode=0700
2016-10-20 13:18:59 +03:00
Type=simple
ExecStart=/usr/sbin/i2pd --conf=/etc/i2pd/i2pd.conf --tunconf=/etc/i2pd/tunnels.conf --pidfile=/var/run/i2pd/i2pd.pid --logfile=/var/log/i2pd/i2pd.log --daemon --service
2018-01-22 21:55:12 +03:00
ExecReload=/bin/kill -HUP $MAINPID
PIDFile=/var/run/i2pd/i2pd.pid
### Uncomment, if auto restart needed
#Restart=on-failure
### Use SIGINT for graceful 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
2016-10-20 13:18:59 +03:00
[Install]
WantedBy=multi-user.target