Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "background" command-line switch for FTE #10

Closed
kpdyer opened this issue Jun 4, 2013 · 2 comments
Closed

Add "background" command-line switch for FTE #10

kpdyer opened this issue Jun 4, 2013 · 2 comments
Assignees

Comments

@kpdyer
Copy link
Owner

kpdyer commented Jun 4, 2013

We should add a command-line switch to enable FTE to run in the background. At the moment we run FTE in the background by using "&" on Linux. As a byproduct, we don't output much information unless the "--debug" switch is added.

We should:
(1) Add a "-d" switch for FTE to start as a daemon.
(2) When "-d" is not specified we should be a bit more chatty, so the user knows what is going on.

@dcreager
Copy link

dcreager commented Jun 4, 2013

A heads-up on this one: the accepted way to run daemons on Linux/POSIX systems has changed over the past couple of years. The traditional way (described on this StackOverflow answer) is to use a double-fork idiom, which is probably exposed via some call in the Python standard library.

The new best practice, however, is just to run your server process in the foreground, and let something else take care of daemonizing it if needed (described in the next answer down). That lets your server play nicely with a wider variety of init replacements and process monitors.

So if you follow this newer strategy, this option is really more of a verbosity control than anything — you no longer have to change your actual startup behavior in “daemon” mode.

@kpdyer
Copy link
Owner Author

kpdyer commented Jun 6, 2013

Sounds good. Thanks for the tip! I'll close this issue and open another to focus on better default verbosity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants