Skip to content

Commit

Permalink
squash w/ startup/shutdown. Do not allow --daemonize and --stdout to …
Browse files Browse the repository at this point in the history
…be used at the same time.
  • Loading branch information
korydraughn committed Nov 9, 2024
1 parent 3bb4ea7 commit 3ef5ff4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/main_server/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ auto main(int _argc, char* _argv[]) -> int
}

if (vm.count("daemonize") > 0) {
if (vm.count("stdout") > 0) {
fmt::print(stderr, "Error: --daemonize and --stdout are incompatible.\n");
return 1;
}

daemonize();
}

Expand Down

0 comments on commit 3ef5ff4

Please sign in to comment.