Don't special case innd.pid and handle files in run that start with -
This commit is contained in:
parent
d810e597dc
commit
cd6f815036
@ -75,9 +75,9 @@ start()
|
|||||||
eend 0
|
eend 0
|
||||||
|
|
||||||
ebegin "Cleaning /var/run"
|
ebegin "Cleaning /var/run"
|
||||||
for x in $(find /var/run ! -type d ! -name utmp ! -name innd.pid \
|
for x in $(find /var/run ! -type d ! -name utmp ! -name random-seed \
|
||||||
! -name random-seed ! -name ld-elf.so.hints \
|
! -name ld-elf.so.hints ! -name ld.so.hints);
|
||||||
! -name ld.so.hints); do
|
do
|
||||||
[ ! -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
|
||||||
@ -87,7 +87,7 @@ start()
|
|||||||
[ $? -eq 0 ] && continue
|
[ $? -eq 0 ] && continue
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
rm -f "${x}"
|
rm -f -- "${x}"
|
||||||
done
|
done
|
||||||
eend 0
|
eend 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user