Closed thetrompf closed 7 years ago
Wouldn't it better to leverage the /proc filesystem to figure out if the process is running instead of "parsing" ps output with awk and grep?
/proc
ps
awk
grep
is_running() { [ -d "/proc/$(get_pid)" ] }
Good idea. Can you submit a PR?
Yes I can, I'll to it tonight
Wouldn't it better to leverage the
/proc
filesystem to figure out if the process is running instead of "parsing"ps
output withawk
andgrep
?