aboutsummaryrefslogtreecommitdiff
path: root/rc.single
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-06-06 02:27:39 +0200
committerTom Gundersen <teg@jklm.no>2011-06-06 02:27:39 +0200
commit3ac781f2f188b4e9c698aba7ede6154a64ffc679 (patch)
tree73e6113f7d03beab9ea18672acf03859c10a4366 /rc.single
parent36f31f686374ae3f2311f8674e0a91022d502576 (diff)
parent7a6fc752cf8dc09b9358810d947e6e01f9a8fc25 (diff)
downloadinitscripts-3ac781f2f188b4e9c698aba7ede6154a64ffc679.tar.xz
Merge remote-tracking branch 'djgera/djgera'
Conflicts: rc.single rc.sysinit Mostly trivial conflicts with Dave's path purging Signed-off-by: Tom Gundersen <teg@jklm.no>
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: