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

Don’t try to start server again if it’s already running #29

Open
jmakeig opened this issue Mar 8, 2016 · 1 comment
Open

Don’t try to start server again if it’s already running #29

jmakeig opened this issue Mar 8, 2016 · 1 comment
Assignees

Comments

@jmakeig
Copy link
Contributor

jmakeig commented Mar 8, 2016

For example, put a check in startServer to see if pgrep MarkLogic returns anything. I’d suggest the start command to fail if there’s already a MarkLogic instance running, rather than automatically shutting down the currently running instance. (But I might be convinced otherwise.)

@jmakeig jmakeig self-assigned this Mar 8, 2016
@jmakeig
Copy link
Contributor Author

jmakeig commented Apr 26, 2016

#!/usr/bin/env bash
while pgrep MarkLogic; do 
  # echo 'check'
  sleep 1
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
@jmakeig and others