Add nohup to start-ipfs-server.ps1

This commit is contained in:
Markus Fleschutz 2021-06-24 12:38:18 +02:00
parent 66cc3cc635
commit bc813ab31f

View File

@ -9,7 +9,7 @@ try {
"⚠️ Make sure your router does not block port 4001 (TCP/UDP) for IPv4/v6!"
""
"1Step 1/5: searching for ipfs executable..."
"Step 1/5: searching for ipfs executable..."
$Result = (ipfs --version)
if ($lastExitCode -ne "0") { throw "Can't execute 'ipfs' - make sure IPFS is installed and available" }
@ -35,11 +35,10 @@ try {
"Step 5/5: starting daemon..."
& ipfs daemon
if ($lastExitCode -ne "0") { throw "'ipfs daemon' failed" }
Start-Process nohup 'ipfs daemon'
"IPFS server has stopped"
exit 1
"Done."
exit 0
} catch {
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1