Add copyright for restart func

This commit is contained in:
Alex X
2023-10-09 17:37:53 +03:00
parent 9a2e9dd6d1
commit 96bc88d8ce
+2
View File
@@ -78,6 +78,8 @@ func RunUntilSignal() {
println("exit with signal:", (<-sigs).String())
}
// Restart idea taken from https://github.com/tillberg/autorestart
// Copyright (c) 2015, Dan Tillberg
func Restart() {
path, err := exec.LookPath(os.Args[0])
if err != nil {