Fix fuser on BSD platforms.
This commit is contained in:
parent
c18c74e816
commit
8d47d6c022
@ -93,8 +93,12 @@ start()
|
|||||||
! -name ld-elf.so.hints ! -name ld.so.hints);
|
! -name ld-elf.so.hints ! -name ld.so.hints);
|
||||||
do
|
do
|
||||||
# Clean stale sockets
|
# Clean stale sockets
|
||||||
if [ -S "${x}" ] && type fuser >/dev/null 2>&1; then
|
if [ -S "${x}" ]; then
|
||||||
fuser -s "${x}" || rm "${x}"
|
if type fuser >/dev/null 2>&1; then
|
||||||
|
fuser "${x}" 2>/dev/null || rm "${x}"
|
||||||
|
else
|
||||||
|
rm "${x}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
[ ! -f "${x}" ] && continue
|
[ ! -f "${x}" ] && continue
|
||||||
# Do not remove pidfiles of already running daemons
|
# Do not remove pidfiles of already running daemons
|
||||||
|
Loading…
Reference in New Issue
Block a user