Clean stale sockets.
This commit is contained in:
parent
41c1e170d6
commit
5f76c1121a
@ -89,6 +89,10 @@ start()
|
|||||||
! -name random-seed ! -name dev.db \
|
! -name random-seed ! -name dev.db \
|
||||||
! -name ld-elf.so.hints ! -name ld.so.hints);
|
! -name ld-elf.so.hints ! -name ld.so.hints);
|
||||||
do
|
do
|
||||||
|
# Clean stale sockets
|
||||||
|
if [ -S "${x}" ] && type fuser >/dev/null 2>&1; then
|
||||||
|
fuser -s "${x}" || rm "${x}"
|
||||||
|
fi
|
||||||
[ ! -f "${x}" ] && continue
|
[ ! -f "${x}" ] && continue
|
||||||
# Do not remove pidfiles of already running daemons
|
# Do not remove pidfiles of already running daemons
|
||||||
case "${x}" in
|
case "${x}" in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user