From 97f73be050f52b1e44b90a5928eeda931b29fff4 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Tue, 31 Dec 2024 01:36:29 -0500 Subject: [PATCH] Change exit codes --- environment.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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) } }