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.

Required fields*

3
  • Ok. I was thinking that if my ps command printout sees a "1" that it would follow the instructions in the if/first echo, and if not go to the second. BTW when the service is running the output of the ps command in the script is a "1" and a "0" if not running. But I will try it and get back to you. Commented Jan 7, 2016 at 19:58
  • Also note the quotes around $is_running Commented Jan 7, 2016 at 20:01
  • Its still not working. I have tried with the changes recommended and with many other variations. Commented Jan 7, 2016 at 20:32