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.
@RubenKelevra committed
May 7, 2020 at 23:17 UTC
d66004d6db2f8155a3e3d1248882060ba140e2de
1 file changed
+1
-1
misc/systemd/ipfs.service
+1
-1
@@ -14,7 +14,7 @@ After=network.target
14
Type=notify
15
User=ipfs
16
Group=ipfs
17
-WorkingDirectory=/var/lib/ipfs
17
+StateDirectory=ipfs
18
ExecStart=/usr/bin/ipfs daemon --init --migrate
19
Restart=on-failure
20
KillSignal=SIGINT