diff --git a/environment.go b/environment.go index c52d9b5..042de35 100644 --- a/environment.go +++ b/environment.go @@ -84,13 +84,13 @@ func (this *environment) Run(name, description string, actors ...Actor) { }) if !this.phase10FlagParsing() { os.Exit(2) } - if !this.phase13PidFileCreation() { os.Exit(2) } - if !this.phase17PrivilegeDropping() { os.Exit(2) } - if !this.phase20LogSwitching() { os.Exit(2) } - if !this.phase30ConfigurationParsing() { os.Exit(2) } - if !this.phase40ConfigurationProcessing() { os.Exit(2) } - if !this.phase50ConfigurationApplication() { os.Exit(2) } - if !this.phase60Initialization() { os.Exit(2) } + if !this.phase13PidFileCreation() { os.Exit(1) } + if !this.phase17PrivilegeDropping() { os.Exit(1) } + if !this.phase20LogSwitching() { os.Exit(1) } + if !this.phase30ConfigurationParsing() { os.Exit(1) } + if !this.phase40ConfigurationProcessing() { os.Exit(1) } + if !this.phase50ConfigurationApplication() { os.Exit(1) } + if !this.phase60Initialization() { os.Exit(1) } if !this.phase70Running() { os.Exit(1) } if !this.phase80Shutdown() { os.Exit(1) } }