diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-15 11:28:30 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-15 11:28:30 -0500 |
commit | afe07dcba80a2dd047b72db30fcdb32ec2799d00 (patch) | |
tree | d541769e28e277604e9ff452f5dd5e97299601e6 | |
parent | 34c99f99a51c661ab36ae9a148e2ea2f8e09ecc6 (diff) |
daemon: don't complain if /proc/${pid} doesn't exist
-rw-r--r-- | daemon.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2,7 +2,7 @@ get_ident() { local pid=$1 - cut -d ' ' -f 22 /proc/$pid/stat + cut -d ' ' -f 22 /proc/$pid/stat 2>/dev/null } is_running() { |