Open GoogleCodeExporter opened 8 years ago
I suppose Andrey's new changes (socket closing) might solve the problem. Please
check that.
Original comment by vilius.s...@gmail.com
on 25 Jun 2012 at 6:56
Hmm, he's Oleg. I don't know why I called him Andrey. :)
Original comment by vilius.s...@gmail.com
on 25 Jun 2012 at 6:59
That wasn't my changes, it was Andrey ;) Seriously it was made the last commit
by David. But Ctrl-C issue can be solved if we fix signal handling, which was
added in my commit. We just need to make one more handler fot SIGINT.
Original comment by duke...@gmail.com
on 26 Jun 2012 at 9:55
BTW, in instance mode Ctrl-C working fine on QNAP with Python 2.7
Original comment by duke...@gmail.com
on 26 Jun 2012 at 9:58
David, can you check please is my SIGINT workaround work now in your system?
Original comment by duke...@gmail.com
on 4 Jul 2012 at 9:17
I'll test this the next I get around to deploying the latest version and
testing it.
Original comment by davidgrant
on 12 Jul 2012 at 6:02
This doesn't seem to work. And also, when I run as a daemon the server also
doesn't die. Only kill -9 seems to work.
Original comment by davidgrant
on 20 Aug 2012 at 4:57
When I say as a daemon, I mean using start-stop-daemon on Linux.
Original comment by davidgrant
on 20 Aug 2012 at 4:58
Forget about using star-stop-daemon, this eyefiserver has already all routines
to run as a daemon by itself. And I doubt you will have a stacktrace into the
log file while running instance version using start-stop-daemon.
Original comment by duke...@gmail.com
on 20 Aug 2012 at 6:30
Yeah I have stacktrace in the log now, I'm logging it now properly, at
least in the do_POST handler. I'll try starting it without
start-stop-daemon, but the init.d script still does it this way. It would
be nice to be able to use that, I mean to properly start the application as
a pure foreground application and then daemonize it outside the script.
Dave
Original comment by davidgrant
on 20 Aug 2012 at 6:56
Ok, actually CTRL-C does work if I start the server in "instance" mode and then
press CTRL-C, as long as no images have been uploaded. As soon as an image
upload takes place, CTRL-C no longer works. It will print "Eye-Fi server
stopped" but it never exits.
Original comment by davidgrant
on 20 Aug 2012 at 6:58
The committed version of init.d script is not using start-stop-daemon. I
intentionally made it so long ago.
Original comment by duke...@gmail.com
on 20 Aug 2012 at 7:19
Yeah sorry, I just haven't gotten around to swapping out my init.d script with
the latest one.
Original comment by davidgrant
on 20 Aug 2012 at 7:27
Original issue reported on code.google.com by
davidgrant
on 25 Jun 2012 at 4:50