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.
This commit is contained in:
@RubenKelevra 2020-05-07 23:17:41 +02:00
parent 3339ce3b0e
commit d66004d6db

View File

@ -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