Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions docs/boothd.8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,11 @@ The configuration name also determines the name of the PID file - for the defaul
Report version information.

*-S*::
'systemd' mode: don't fork. This is like '-D' but without the debug output.
'systemd' mode: don't fork.
Disables daemonizing, the process will remain in the foreground.

*-D*::
Debug output/don't daemonize.
Increases the debug output level; booth daemon remains
in the foreground.
Increases the debug output level.

*-l* 'lockfile'::
Use another lock file. By default, the lock file name is
Expand Down
4 changes: 3 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1116,10 +1116,12 @@ static int read_arguments(int argc, char **argv)
strcat(cp, BOOTH_DEFAULT_CONF_EXT);
}
break;

case 'D':
debug_level++;
enable_stderr = 1;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enable stderr should go below to the 'S' option.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well spotted, thanks

/* Fall through */
break;

case 'S':
daemonize = 0;
break;
Expand Down