From b0781668e2e51ba4820bff5e0f0bcc5eaa4be441 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Mon, 5 Mar 2018 18:30:02 +0100 Subject: [PATCH] Create LogsDirectory in i2pd.service 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 --- contrib/i2pd.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/i2pd.service b/contrib/i2pd.service index 5ed31d41..9af96c37 100644 --- a/contrib/i2pd.service +++ b/contrib/i2pd.service @@ -8,6 +8,8 @@ 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