mirror of
https://github.com/ipfs/kubo.git
synced 2025-05-17 06:57:40 +08:00
fix: align systemd unit file with default IPFS installation path (#10163)
This commit is contained in:
@ -17,7 +17,7 @@ Description=IPFS daemon
|
||||
|
||||
[Service]
|
||||
# Environment="IPFS_PATH=/data/ipfs" # optional path to ipfs init directory if not default ($HOME/.ipfs)
|
||||
ExecStart=/usr/bin/ipfs daemon
|
||||
ExecStart=/usr/local/bin/ipfs daemon
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
|
@ -8,7 +8,7 @@
|
||||
# To overwrite a variable, like ExecStart you have to specify it once
|
||||
# blank and a second time with a new value, like:
|
||||
# ExecStart=
|
||||
# ExecStart=/usr/bin/ipfs daemon --flag1 --flag2
|
||||
# ExecStart=/usr/local/bin/ipfs daemon --flag1 --flag2
|
||||
#
|
||||
# For more info about custom unit files see systemd.unit(5).
|
||||
|
||||
@ -70,7 +70,7 @@ User=ipfs
|
||||
Group=ipfs
|
||||
StateDirectory=ipfs
|
||||
Environment=IPFS_PATH="${HOME}"
|
||||
ExecStart=/usr/bin/ipfs daemon --init --migrate
|
||||
ExecStart=/usr/local/bin/ipfs daemon --init --migrate
|
||||
Restart=on-failure
|
||||
KillSignal=SIGINT
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
# To overwrite a variable, like ExecStart you have to specify it once
|
||||
# blank and a second time with a new value, like:
|
||||
# ExecStart=
|
||||
# ExecStart=/usr/bin/ipfs daemon --flag1 --flag2
|
||||
# ExecStart=/usr/local/bin/ipfs daemon --flag1 --flag2
|
||||
#
|
||||
# For more info about custom unit files see systemd.unit(5).
|
||||
|
||||
@ -41,7 +41,7 @@ User=ipfs
|
||||
Group=ipfs
|
||||
StateDirectory=ipfs
|
||||
Environment=IPFS_PATH="${HOME}"
|
||||
ExecStart=/usr/bin/ipfs daemon --init --migrate
|
||||
ExecStart=/usr/local/bin/ipfs daemon --init --migrate
|
||||
Restart=on-failure
|
||||
KillSignal=SIGINT
|
||||
|
||||
|
Reference in New Issue
Block a user