Change exit codes

This commit is contained in:
Sasha Koshka 2024-12-31 01:36:29 -05:00
parent 4a88d3a38c
commit 97f73be050

View File

@ -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) }
}