Closed curtislisle closed 11 years ago
I've scheduled some time with Curt on Monday (April 1st) to get to the bottom of this.
Because 10.6 is an older OS, we've decided to implement a workaround rather than try to figure out just what's going wrong. The plan is to detect the OSX version number, and if it's 10.6 (or, alternatively, less than 10.8) we will disable the daemonization feature of the tangelo control script (much as we have for windows). This may include showing a CMake warning explaining what's going on, and possibly giving the user a way to override this disabling via a CMake boolean variable (in case, for instance, the user is not building Tangelo for use on the 10.6 system, or to make it easier for us to test things in general).
There is an OSX command "sw_vers" that gives information about the currently running OS, including the OS version number. We can place a test in the top level CMakeLists file that will run this command if the APPLE variable is defined, and then depending on the version number we can output a warning and disable the daemonization behaviors.
I discovered that the Python standard library has nice facilities for detection OS and OS version. I pushed a branch "detect-os-version" that works for me on Linux - I'd like for Jeff and Curt to test it on Windows and Mac, respectively, if you could. The script contains a disabling of the daemonization behavior for both Windows and Mac OS 10.6, so Curt can actually try this on both of his Macs just to make sure it works.
If it does, I'll merge it to master and close this issue.
Start/stop/restart works as expected in daemonized mode on OSX 10.8 with this change.
Start works as expected on Windows, and stop/restart fail with an appropriate message, so this appears to be good to go on Windows.
Curt reports that this works as expected on OSX 10.6, so I'm closing the issue.
The default build for xdwctl is to run CherryPy in daemon mode (with the "-d" option). This doesn't work for my Mac at OS X 10.6.8. I have to comment out the -d line for Tangelo to serve any content to my local web browser. With daemon mode enabled, the browser tab just spins & spins without receiving a page update.