eye icon indicating copy to clipboard operation
eye copied to clipboard

Synchronous/blocking restart

Open derSascha opened this issue 8 years ago • 3 comments

Hi, is there an easy way to run the restart command in blocking mode? Issue #93 sounds like this, but is very old and ends up in some non English language.

It would be very helpful while running eye in some deploy script (e.g. capistrano) that runs additional stuff after the process has been really restarted.

My current workaround looks like this:

Eye.app...
    trigger :transition, from: :restarting, to: :up, do: -> {
        process.execute_sync "rm -f tmp/restarting-abc-proc"
        info "got to up (#{process.name})"
    }

And in the deploy script

touch tmp/restarting-abc-proc
eye restart abc-proc
while test -f tmp/restarting-abc-proc; do sleep 1; done

Any suggestions?

derSascha avatar Nov 30 '17 21:11 derSascha

yes, right now it works only as you describe. i tried to do sync command in branch, but not finished...

kostya avatar Nov 30 '17 21:11 kostya

do you need some help on this? which branch do you mean?

derSascha avatar Dec 06 '17 14:12 derSascha

no, it just not easy in current code.

kostya avatar Dec 07 '17 15:12 kostya