|
|
@ -58,7 +58,7 @@ impl App {
|
|
|
|
pub fn check_restart(&self, status: ExitStatus) -> bool {
|
|
|
|
pub fn check_restart(&self, status: ExitStatus) -> bool {
|
|
|
|
if status.success() {
|
|
|
|
if status.success() {
|
|
|
|
self.restart_on_success.unwrap_or(false)
|
|
|
|
self.restart_on_success.unwrap_or(false)
|
|
|
|
} else if let Some(code) = status.code() {
|
|
|
|
} else if let Some(_code) = status.code() {
|
|
|
|
self.restart_on_failure.unwrap_or(false)
|
|
|
|
self.restart_on_failure.unwrap_or(false)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
self.restart_on_terminate.unwrap_or(false)
|
|
|
|
self.restart_on_terminate.unwrap_or(false)
|
|
|
|