diff --git a/src/app.rs b/src/app.rs index 6f0a8b1..059126c 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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>, + /// should the app be restarted if it exits successfully pub restart_on_success: Option, + /// should the app be restarted if it exits unsuccessfully pub restart_on_failure: Option, + /// should the app be restarted if it is terminated pub restart_on_terminate: Option, + /// on sup startup, should we wait for this app to run before continuting pub wait: Option, + /// should this app keep sup from exiting, if it's running pub hold: Option, }