aboutsummaryrefslogtreecommitdiff
path: root/rc.single
diff options
context:
space:
mode:
Diffstat (limited to 'rc.single')
-rwxr-xr-xrc.single8
1 files changed, 5 insertions, 3 deletions
diff --git a/rc.single b/rc.single
index c754eb1..91d346b 100755
--- a/rc.single
+++ b/rc.single
@@ -50,9 +50,11 @@ if [[ $RUNLEVEL = 1 ]]; then
exec init -t1 S
fi
-touch /var/log/boot
-kill $(< /run/bootlogd.pid)
-rm /run/bootlogd.pid
+if [[ -f /run/bootlogd.pid ]]; then
+ touch /var/log/boot
+ kill $(< /run/bootlogd.pid)
+ rm -f /run/bootlogd.pid
+fi
# End of file
# vim: set ts=2 sw=2 noet: