go-update
go-update copied to clipboard
Restart process after update
Hello, is this functionallity already present? I just looked into the code and found that it only replaces the current file, but does not kill that and start the new file. Do I need to make my own implementation to control the execution?
Regards Jorge Luna
i want so
Naive approach:
if err = update.Apply(bin, update.Options{}); err != nil {
panic(err)
}
if err = syscall.Exec(binPath, os.Args, os.Environ()); err != nil {
panic(err)
}
Edit: This should work -- I just didn't have first arg path set correctly when I first posted this.
@tjk panic: not supported by windows