fix no pid file

This commit is contained in:
wanyaoqi
2019-05-13 16:28:49 +08:00
parent c633e42a9f
commit 324154eca2
+1
View File
@@ -340,6 +340,7 @@ func (s *SKVMGuestInstance) generateStartScript(data *jsonutils.JSONDict) (strin
}
cmd += fmt.Sprintf("STATE_FILE=`ls -d %s* | head -n 1`\n", s.getStateFilePathRootPrefix())
cmd += fmt.Sprintf("PID_FILE=%s\n", s.GetPidFilePath())
var qemuCmd = qemutils.GetQemu(qemuVersion)
cmd += fmt.Sprintf("DEFAULT_QEMU_CMD='%s'\n", qemuCmd)