Skip to content

Commit

Permalink
bugfix (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoshinonyaruko authored Nov 19, 2023
1 parent 3671de9 commit 972619a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/restart_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func NewRestarter() *UnixRestarter {
func (r *UnixRestarter) Restart(executableName string) error {
scriptContent := "#!/bin/sh\n" +
"sleep 1\n" + // Sleep for a bit to allow the main application to exit
"." + executableName + "\n"
"exec " + executableName + "\n"

scriptName := "restart.sh"
if err := os.WriteFile(scriptName, []byte(scriptContent), 0755); err != nil {
Expand Down

0 comments on commit 972619a

Please sign in to comment.