1*4882a593Smuzhiyun[Unit] 2*4882a593SmuzhiyunDescription=I2P Router written in C++ 3*4882a593SmuzhiyunAfter=network.target 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun[Service] 6*4882a593SmuzhiyunUser=i2pd 7*4882a593SmuzhiyunGroup=i2pd 8*4882a593SmuzhiyunRuntimeDirectory=i2pd 9*4882a593SmuzhiyunRuntimeDirectoryMode=0700 10*4882a593SmuzhiyunLogsDirectory=i2pd 11*4882a593SmuzhiyunLogsDirectoryMode=0700 12*4882a593SmuzhiyunType=simple 13*4882a593SmuzhiyunExecStart=/usr/bin/i2pd --conf=/etc/i2pd/i2pd.conf --tunconf=/etc/i2pd/tunnels.conf --pidfile=/run/i2pd/i2pd.pid --logfile=/var/log/i2pd/i2pd.log --daemon --service 14*4882a593SmuzhiyunExecReload=/bin/kill -HUP $MAINPID 15*4882a593SmuzhiyunPIDFile=/run/i2pd/i2pd.pid 16*4882a593Smuzhiyun### Uncomment, if auto restart needed 17*4882a593Smuzhiyun#Restart=on-failure 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun### Use SIGINT for graceful stop daemon. 20*4882a593Smuzhiyun# i2pd stops accepting new tunnels and waits ~10 min while old ones do not die. 21*4882a593SmuzhiyunKillSignal=SIGINT 22*4882a593SmuzhiyunTimeoutStopSec=10m 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun# If you have problems with hanging i2pd, you can try enable this 25*4882a593Smuzhiyun#LimitNOFILE=4096 26*4882a593SmuzhiyunPrivateDevices=yes 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun[Install] 29*4882a593SmuzhiyunWantedBy=multi-user.target 30