From d66004d6db2f8155a3e3d1248882060ba140e2de Mon Sep 17 00:00:00 2001 From: "@RubenKelevra" Date: Thu, 7 May 2020 23:17:41 +0200 Subject: [PATCH] systemd: add state directory setting this will inform systemd where the service stores it's persistent data and where it needs write access. Systemd will create the folder and set the right owner rights. --- misc/systemd/ipfs.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/systemd/ipfs.service b/misc/systemd/ipfs.service index 73109dccd..78bf3c799 100644 --- a/misc/systemd/ipfs.service +++ b/misc/systemd/ipfs.service @@ -14,7 +14,7 @@ After=network.target Type=notify User=ipfs Group=ipfs -WorkingDirectory=/var/lib/ipfs +StateDirectory=ipfs ExecStart=/usr/bin/ipfs daemon --init --migrate Restart=on-failure KillSignal=SIGINT