I built the golang app in local, then scp to server. I need to stop the process and restart manually. Is there any way to auto-restart the process when binary updated?
Golang:二进制更新后如何自动重启进程?
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
3条回答 默认 最新
dongshiliao7990 2016-12-29 09:20关注Does it need to be sophisticated? You could have
entrrunning and trigger an updater script when the binary changes.e.g.
echo 'binary_path' | entr script.sh &解决 无用评论 打赏 举报