aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2014-03-26 14:30:14 +0100
committerLukas Nykryn <lnykryn@redhat.com>2014-03-26 14:30:24 +0100
commit9f13c5e2cb4b2780f6137f83f87e2e12636718d0 (patch)
tree14d2b27632ae96e0d306d48fa7cc5effba3dc1ea /rc.d
parent67e4aa9e5dc6cd59f67a28275a4784f9500bff3b (diff)
downloadinitscripts-9f13c5e2cb4b2780f6137f83f87e2e12636718d0.tar
initscripts-9f13c5e2cb4b2780f6137f83f87e2e12636718d0.tar.gz
initscripts-9f13c5e2cb4b2780f6137f83f87e2e12636718d0.tar.bz2
initscripts-9f13c5e2cb4b2780f6137f83f87e2e12636718d0.tar.xz
initscripts-9f13c5e2cb4b2780f6137f83f87e2e12636718d0.zip
pids_var_run: handle '(deleted)'
Diffstat (limited to 'rc.d')
-rw-r--r--rc.d/init.d/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index b0a5aadb..d474a620 100644
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -161,7 +161,7 @@ __pids_var_run() {
for p in $line ; do
if [ -z "${p//[0-9]/}" -a -d "/proc/$p" ] ; then
if [ -n "$binary" ] ; then
- local b=$(__readlink /proc/$p/exe)
+ local b=$(readlink /proc/$p/exe | sed -e 's/\s*(deleted)$//')
[ "$b" != "$binary" ] && continue
fi
pid="$pid $p"