Commit 7f19a909 authored by Alex Tayts's avatar Alex Tayts
Browse files

fixed a bug with long process names

parent d7bd5300
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## Release 0.3.1

* Fixed a bug with long process names.

## Release 0.3.0

* Added resolve_to option to URL check.
+1 −1
Original line number Diff line number Diff line
{
  "name": "ruthenium-server_patching",
  "version": "0.3.0",
  "version": "0.3.1",
  "author": "Ruthenium",
  "summary": "Generate bash script to valideate server state.",
  "license": "MIT",
+2 −2
Original line number Diff line number Diff line
@@ -4,9 +4,9 @@
# process <%= $process['name'] %>
echo -n "Process <%= $process['name'] -%>..."
<%- if 'command' in $process { -%>
pgrep -a <%= $process['name'] %> | grep <%= $process['command'] %> > /dev/null
pgrep -af <%= $process['name'] %> | grep <%= $process['command'] %> > /dev/null
<%- } else { -%>
pgrep <%= $process['name'] %> > /dev/null
pgrep -f <%= $process['name'] %> > /dev/null
<%- } -%>
if [ $? -eq <%= $desired %> ]; then
    echo " OK."