ipfs-cookbook/templates/default/ipfs.systemd.service.erb
Greg Karékinian b98b45584c Migrate IPFS repo automatically if necessary
go-ipfs can automatically migrate the repo if necessart after a software
upgrade, but it needs to the `--migrate` option flag to do so.
2018-10-26 17:39:36 +02:00

12 lines
162 B
Plaintext

[Unit]
Description=Start ipfs
[Service]
ExecStart=/usr/local/bin/ipfs daemon --migrate
User=ipfs
Group=ipfs
Restart=always
[Install]
WantedBy=multi-user.target