aboutsummaryrefslogtreecommitdiff
path: root/init.d/bootmisc
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-14 10:57:48 +0000
committerRoy Marples <roy@marples.name>2008-01-14 10:57:48 +0000
commitcd6f8150366e17eda7090d8cd5b8abd949f62f77 (patch)
treeb66ebb73b3708bdfe7ad9b8cb4ca454cd218ca44 /init.d/bootmisc
parentd810e597dc20333eaf7276213883996d60064ea2 (diff)
Don't special case innd.pid and handle files in run that start with -
Diffstat (limited to 'init.d/bootmisc')
-rwxr-xr-xinit.d/bootmisc8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.d/bootmisc b/init.d/bootmisc
index fd56a764..286ca61c 100755
--- a/init.d/bootmisc
+++ b/init.d/bootmisc
@@ -75,9 +75,9 @@ start()
eend 0
ebegin "Cleaning /var/run"
- for x in $(find /var/run ! -type d ! -name utmp ! -name innd.pid \
- ! -name random-seed ! -name ld-elf.so.hints \
- ! -name ld.so.hints); do
+ for x in $(find /var/run ! -type d ! -name utmp ! -name random-seed \
+ ! -name ld-elf.so.hints ! -name ld.so.hints);
+ do
[ ! -f "${x}" ] && continue
# Do not remove pidfiles of already running daemons
case "${x}" in
@@ -87,7 +87,7 @@ start()
[ $? -eq 0 ] && continue
;;
esac
- rm -f "${x}"
+ rm -f -- "${x}"
done
eend 0