From 17f7e7483e46a68e2b4cea6cc76216b92370c5e3 Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Sat, 4 Jun 2011 21:18:29 -0300 Subject: [initscripts] Avoid error message when switch runlevels. Going from multi to single and going back to multi, bootlogd is not running. Signed-off-by: Gerardo Exequiel Pozzi --- rc.multi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'rc.multi') diff --git a/rc.multi b/rc.multi index 60bb835..7af9279 100755 --- a/rc.multi +++ b/rc.multi @@ -26,8 +26,10 @@ fi run_hook multi_end -/bin/touch /var/log/boot -kill $(/bin/cat /run/bootlogd.pid) -/bin/rm /run/bootlogd.pid +if [[ -f /run/bootlogd.pid ]]; then + /bin/touch /var/log/boot + kill $(< /run/bootlogd.pid) + /bin/rm -f /run/bootlogd.pid +fi # vim: set ts=2 sw=2 noet: -- cgit v1.2.3