on Linux i can setup a file so ipfs is handled as a service:
This file has been truncated.
# This file will be overwritten on package upgrades, avoid customizations here.
# To make persistent changes, create file in
# "/etc/systemd/system/ipfs.service.d/overwrite.conf" with
# `systemctl edit ipfs.service`. This file will be parsed after this
# file has been parsed.
# To overwrite a variable, like ExecStart you have to specify it once
# blank and a second time with a new value, like:
# ExecStart=/usr/bin/ipfs daemon --flag1 --flag2
# For more info about custom unit files see systemd.unit(5).
Description=InterPlanetary File System (IPFS) daemon
I have questions. Should i really use:
instead of my username? I have used my username and excluded Group line and it works…
ExecStart=/usr/bin/ipfs daemon --init --migrate
these switches are used here for some reason, or just so it is more universal and if not initialized yet or using old profile so this command fixes this automatically? I am not using any switches currently.
Latest version i have.
On servers we normally isolate the IPFS process with its own user and group. If you are not running a dedicated machine for it, and rather do “home” usage… then you can use whatever.
Used so that ipfs can re-start if it’s not initalized or is upgraded and the upgrade has a migration. Just that.