summaryrefslogtreecommitdiff
path: root/restart.go
diff options
context:
space:
mode:
Diffstat (limited to 'restart.go')
-rw-r--r--restart.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/restart.go b/restart.go
index 9066c16..8b2ec79 100644
--- a/restart.go
+++ b/restart.go
@@ -12,14 +12,12 @@ func restart() {
var err error
if _, err = os.Stat(executable); err != nil {
- log.Fatalf("Error while stat executable path, %s", err)
- os.Exit(1)
+ log.Fatalf("Error stat executable path, %s", err)
}
log.Infof("Re-executing %s...", executable)
err = syscall.Exec(executable, os.Args, os.Environ())
if err != nil {
- log.Fatalf("Error while re-executing, %s", err)
- os.Exit(1)
+ log.Fatalf("Error re-executing, %s", err)
}
}