diff options
author | Serghei Iakovlev <sergeyklay@users.noreply.github.com> | 2014-12-05 14:50:45 +0200 |
---|---|---|
committer | Serghei Iakovlev <sergeyklay@users.noreply.github.com> | 2014-12-05 14:50:45 +0200 |
commit | d4a9836f1a4177a188537875374142e09cb4da74 (patch) | |
tree | 1f676bad4290a1bab686311c7da43b0275b2e9fd /utils | |
parent | ff25d1896d3befe184aa1adebf5d5e961f5d4b15 (diff) | |
download | redis-d4a9836f1a4177a188537875374142e09cb4da74.tar.gz |
getting pid fixes
```sh
$ ~ pidof redis-server
# nothing
$ ~ ps aux | grep [r]edis
redis 593 0.0 0.0 36900 5564 ? Ssl Dec02 1:37 /usr/bin/redis-server 127.0.0.1:6379
klay 15927 0.0 0.0 16772 6068 pts/6 S+ 13:58 0:00 redis-cli
$ ~ uname -a
Linux edge 3.17.4-1-ARCH #1 SMP PREEMPT Fri Nov 21 21:14:42 CET 2014 x86_64 GNU/Linux
```
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/whatisdoing.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/whatisdoing.sh b/utils/whatisdoing.sh index 8f441cfc0..1e51e3905 100755 --- a/utils/whatisdoing.sh +++ b/utils/whatisdoing.sh @@ -3,7 +3,7 @@ #!/bin/bash nsamples=1 sleeptime=0 -pid=$(pidof redis-server) +pid=$(ps auxww | grep 'redis-server' | grep -v grep | awk '{print $2}') for x in $(seq 1 $nsamples) do |