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

Synchronous/blocking restart #205

Open
derSascha opened this issue Nov 30, 2017 · 3 comments
Open

Synchronous/blocking restart #205

derSascha opened this issue Nov 30, 2017 · 3 comments

Comments

@derSascha
Copy link

derSascha commented Nov 30, 2017

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?

@kostya
Copy link
Owner

kostya commented Nov 30, 2017

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

@derSascha
Copy link
Author

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

@kostya
Copy link
Owner

kostya commented Dec 7, 2017

no, it just not easy in current code.

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