diff --git a/envconsul/src/lib.rs b/envconsul/src/lib.rs index 2dad335..45c3a8e 100644 --- a/envconsul/src/lib.rs +++ b/envconsul/src/lib.rs @@ -15,7 +15,10 @@ pub fn start(_args: String) -> FnResult { .with_exec(vec!["type", "overmind"])? .with_exec(vec!["type", "envconsul"])? .with_exec(vec![ - "overmind start -f Procfile --daemonize || flox activate -- overmind restart envconsul", + "overmind start -f Procfile --daemonize || flox activate -- overmind quit", + ])? + .with_exec(vec![ + "[ -f ./.overmind.sock ] || flox activate -- overmind start -f Procfile --daemonize", ])? .with_exec(vec!["overmind", "status"])? .with_exec(vec!["sleep", "2"])?