|
1 | 1 | #!/bin/sh
|
2 | 2 | #
|
3 |
| -# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.7 2001/01/25 16:32:25 petere Exp $ |
| 3 | +# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.8 2001/02/10 05:55:17 momjian Exp $ |
4 | 4 | #
|
5 | 5 |
|
6 | 6 | CMDNAME=`basename$0`
|
@@ -62,9 +62,9 @@ if [ `uname` = 'Linux' ]; then
|
62 | 62 | # Don't do anything if process still running.
|
63 | 63 | # (This check is conceptually phony, but it's
|
64 | 64 | # useful anyway in practice.)
|
65 |
| - ps hj$ipcs_pid>/dev/null2>&1 |
| 65 | + ps hj$ipcs_lpid>/dev/null2>&1 |
66 | 66 | if [$?-eq 0 ];then
|
67 |
| -echo"skipped. Process still exists (pid$ipcs_pid)." |
| 67 | +echo"skipped. Process still exists (pid$ipcs_lpid)." |
68 | 68 | else
|
69 | 69 | # try remove
|
70 | 70 | ipcrm shm$ipcs_id
|
|