From 128951e5a73f3815d7799432666fed5303e60557 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Tue, 7 Jan 2014 20:51:42 +0100 Subject: [PATCH] better check for all affected libs --- libssl-restart-daemons.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libssl-restart-daemons.sh b/libssl-restart-daemons.sh index b0814f1..c8edd5e 100755 --- a/libssl-restart-daemons.sh +++ b/libssl-restart-daemons.sh @@ -5,4 +5,4 @@ # Shows all applications using libssl # They need to be restarted after an OpenSSL upgrade -lsof | grep libssl | awk {'print $1"\t "$3'} | sort | uniq +for lib in $(dpkg -L libssl1.0.0 | egrep "(libcrypto\.so|libssl\.so)"); do lsof -R +c 15 / | grep "$lib"; done | awk {'if ($3==1) print $1'} | sort | uniq