enonic/cli-enonic

Can't stop a sandbox on Mac/Linux

Closed this issue · 0 comments

This happens at least on Mac, but maybe other platforms as well.

  1. If you start a sandbox in normal mode (sandbox start) then .enonic will be updated with correct info on the running process but executing sandbox stop (in a different terminal tab) will result in:
% enonic sandbox stop
Could not stop process 60330 no such process

Even though the sandbox is running and there's a process with this id.

  1. If you start a sandbox in a detached mode (sandbox start -d) then again .enonic will be updated with correct info on the running process but executing sandbox stop (in the same terminal tab) will result in:
% enonic sandbox stop
No sandbox is currently running.

What's even worse here is that in this case running and PID properties inside .enonic will be reset, even though sandbox is actually not stopped!