Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • What about pgrep java? Commented Jul 21, 2015 at 20:00
  • It's not specific enough -- I need to make sure this specific java process is running. Commented Jul 21, 2015 at 20:04
  • 1
    Are you stuck on SL 3? Any chance of using, say... SL 7? This is one of the precise problems that systemd was developed to solve. Commented Jul 21, 2015 at 20:14
  • 1
    Build a health check into the application. Spring actuator has some good stuff, or at least will give you an idea. Your app could be running according to the os but not responding. App providing a health check could catch that in addition to it catching dead app. Commented Jul 22, 2015 at 1:56
  • 1
    Does this answer your question? How to chain a shell command off a non-child process exiting without a race condition? Commented May 24, 2022 at 16:16