diff --git a/deploy/cmd_tgz.go b/deploy/cmd_tgz.go index 57343da..059416a 100644 --- a/deploy/cmd_tgz.go +++ b/deploy/cmd_tgz.go @@ -27,7 +27,7 @@ func (p *TgzPkg) StopCmd(svr, cwd string) string { } func (p *TgzPkg) RestartCmd(svr, cwd string) string { - return p.StopCmd(svr, cwd) + ";" + p.StartCmd(svr, cwd) + return p.StopCmd(svr, cwd) + "; sleep 5;" + p.StartCmd(svr, cwd) } func (p *TgzPkg) InstallCmd(svr string, pkgs Packages) string {