You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
479 B

diff --git a/heartbeat/oralsnr b/heartbeat/oralsnr
index c47f121..622138c 100755
--- a/heartbeat/oralsnr
+++ b/heartbeat/oralsnr
@@ -267,8 +267,8 @@ oralsnr_validate_all() {
# used in ora-common.sh
show_procs() {
- ps -e -o pid,user,args |
- grep '[t]nslsnr' | grep -i -w "$listener" | grep -w "$ORACLE_OWNER"
+ ps -U "$ORACLE_OWNER" -o pid,user,args |
+ grep '[t]nslsnr' | grep -i -w "$listener"
}
proc_pids() { show_procs | awk '{print $1}'; }
PROCS_CLEANUP_TIME="10"