Skip to content

Commit

Permalink
Starting bumblebeed service
Browse files Browse the repository at this point in the history
  • Loading branch information
quebin31 committed Jul 21, 2019
1 parent 78d2bc7 commit 285b2cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,16 @@ fn run_app() -> Result<(), ()> {
}

if let Some(_) = args.get(2) {
let optimus = Service::new("optimus-manager");
let bumblebee = Service::new("bumblebeed");

optimus.stop();
bumblebee.start();

bumblebee::run(&args[2..]);

bumblebee.stop();
optimus.start();
} else {
error_print!("Please provide a command to run!");
utils::print::print_usage_run();
Expand Down
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
static VERSION: &str = "2.0.1";
static VERSION: &str = "2.0.2";

pub mod print {
use std::env;
Expand Down

0 comments on commit 285b2cb

Please sign in to comment.