mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-09 11:27:53 +00:00
b0781668e2
Create /var/log/i2pd through LogsDirectory parameter of systemd and set its permission to 0700 through LogsDirectoryMode. Indeed, this directory must be created with the correct permission as it is used in ExecStart command Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
32 lines
925 B
Desktop File
32 lines
925 B
Desktop File
[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
|
|
LogsDirectory=i2pd
|
|
LogsDirectoryMode=0700
|
|
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
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
PIDFile=/var/run/i2pd/i2pd.pid
|
|
### Uncomment, if auto restart needed
|
|
#Restart=on-failure
|
|
|
|
KillSignal=SIGQUIT
|
|
# 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
|
|
|
|
# If you have problems with hanging i2pd, you can try enable this
|
|
#LimitNOFILE=4096
|
|
PrivateDevices=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|