|
|
|
@ -121,11 +121,19 @@ fn run_loop(procs: Vec<Proc>, holds: Option<i8>, poll: Poll, signals: Signals) -
|
|
|
|
|
}
|
|
|
|
|
// process exited
|
|
|
|
|
Ok(ProcessEvent::Exit(status)) => {
|
|
|
|
|
if let Some(code) = status.code() {
|
|
|
|
|
info!(
|
|
|
|
|
"[{}] exited with status {}",
|
|
|
|
|
"[{}] exited with code {}",
|
|
|
|
|
&proc.app.name.yellow(),
|
|
|
|
|
status
|
|
|
|
|
code
|
|
|
|
|
);
|
|
|
|
|
} else {
|
|
|
|
|
info!(
|
|
|
|
|
"[{}] exited with unknown code",
|
|
|
|
|
&proc.app.name.yellow()
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let hold = proc.app.hold.unwrap_or(false);
|
|
|
|
|
if proc.app.check_restart(status) {
|
|
|
|
|
if let Ok(p) = restart_app(proc) {
|
|
|
|
|