|
|
|
@ -9,18 +9,25 @@ use crate::result::Result;
|
|
|
|
|
pub struct App {
|
|
|
|
|
/// name of the app
|
|
|
|
|
pub name: String,
|
|
|
|
|
|
|
|
|
|
/// path/command to run
|
|
|
|
|
pub command: String,
|
|
|
|
|
|
|
|
|
|
/// arguments
|
|
|
|
|
pub args: Option<Vec<String>>,
|
|
|
|
|
|
|
|
|
|
/// should the app be restarted if it exits successfully
|
|
|
|
|
pub restart_on_success: Option<bool>,
|
|
|
|
|
|
|
|
|
|
/// should the app be restarted if it exits unsuccessfully
|
|
|
|
|
pub restart_on_failure: Option<bool>,
|
|
|
|
|
|
|
|
|
|
/// should the app be restarted if it is terminated
|
|
|
|
|
pub restart_on_terminate: Option<bool>,
|
|
|
|
|
|
|
|
|
|
/// on sup startup, should we wait for this app to run before continuting
|
|
|
|
|
pub wait: Option<bool>,
|
|
|
|
|
|
|
|
|
|
/// should this app keep sup from exiting, if it's running
|
|
|
|
|
pub hold: Option<bool>,
|
|
|
|
|
}
|
|
|
|
|