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

--Reload doesn't work with --daemonize #37

Closed
Htbaa opened this issue Dec 16, 2011 · 4 comments
Closed

--Reload doesn't work with --daemonize #37

Htbaa opened this issue Dec 16, 2011 · 4 comments

Comments

@Htbaa
Copy link

Htbaa commented Dec 16, 2011

When running Starman with --Reload and --daemonize it isn't able to restart when a monitored file changes. It works fine when it isn't daemonized.

Output from error log (with --error_log flag)

Process Backgrounded
2011/12/16-15:43:41 Starman::Server (type Net::Server::PreFork) starting! pid(18558)
Using default listen value of 128
Binding to TCP port 5000 on host *
Setting gid to "33 33 33"
Process Backgrounded
2011/12/16-15:43:49 Starman::Server (type Net::Server::PreFork) starting! pid(18573)
Using default listen value of 128
Binding to TCP port 5000 on host *
2011/12/16-15:43:49 Can't connect to TCP port 5000 on * [Address already in use]
  at line 88 in file /usr/local/perls/perl-5.12.2/lib/site_perl/5.12.2/Net/Server/Proto/TCP.pm
2011/12/16-15:43:49 Server closing!
@miyagawa
Copy link
Owner

Short answer is you can't. i wouldn't mind a patch detecting it or documenting the behavior.

@Htbaa
Copy link
Author

Htbaa commented Dec 17, 2011

Bummer. Is it just technically not possible because when it's daemonized it's not allowed to or something?

@miyagawa
Copy link
Owner

Correct.

@Htbaa
Copy link
Author

Htbaa commented Dec 19, 2011

OK, thanks. Will have to find another solution then. I'll see if I can find the time to mention this in the documentation.

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

No branches or pull requests

2 participants