summaryrefslogtreecommitdiff
path: root/edge/pkg/edgehub/upgrade/upgrade.go
diff options
context:
space:
mode:
Diffstat (limited to 'edge/pkg/edgehub/upgrade/upgrade.go')
-rw-r--r--edge/pkg/edgehub/upgrade/upgrade.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/edge/pkg/edgehub/upgrade/upgrade.go b/edge/pkg/edgehub/upgrade/upgrade.go
index a8dd19d21..3a7ecfcd2 100644
--- a/edge/pkg/edgehub/upgrade/upgrade.go
+++ b/edge/pkg/edgehub/upgrade/upgrade.go
@@ -138,8 +138,8 @@ func (*keadmUpgrade) Upgrade(upgradeReq *commontypes.NodeUpgradeJobRequest) erro
upgradeReq.UpgradeID, upgradeReq.HistoryID, version.Get(), upgradeReq.Version, opts.ConfigFile, image)
// run upgrade cmd to upgrade edge node
- // use setsid command and nohup command to start a separate progress
- command := fmt.Sprintf("setsid nohup %s &", upgradeCmd)
+ // use nohup command to start a child progress
+ command := fmt.Sprintf("nohup %s &", upgradeCmd)
cmd := exec.Command("bash", "-c", command)
s, err := cmd.CombinedOutput()
if err != nil {