Skip to content

Commit

Permalink
Allow '-f' argument to run in foreground
Browse files Browse the repository at this point in the history
Using a config file option means that if it's set to foreground,
the system will hang on startup if the RC script is enabled
  • Loading branch information
crees committed Mar 26, 2023
1 parent 072335f commit b68c94b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/poudriered/poudriered.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,10 @@ main(int argc, char **argv)

const ucl_object_t *sock_path_o, *pidfile_path_o, *foreground_o;

if (argc == 2 && strcmp(argv[1], "-f") == 0) {
foreground = true;
}

if (argc == 3) {
struct ucl_parser *parser = NULL;

Expand Down

0 comments on commit b68c94b

Please sign in to comment.