diff options
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2011-06-04 21:18:29 -0300 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2011-06-04 21:18:29 -0300 |
commit | 17f7e7483e46a68e2b4cea6cc76216b92370c5e3 (patch) | |
tree | 9cfab3779b577543cc0b3503920828066a37abcd /rc.single | |
parent | 0dfd69b9e8617ef15413e5022442017603be5344 (diff) | |
download | initscripts-17f7e7483e46a68e2b4cea6cc76216b92370c5e3.tar.xz |
[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 <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'rc.single')
-rwxr-xr-x | rc.single | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -48,9 +48,11 @@ if [[ $RUNLEVEL = 1 ]]; then exec /sbin/init -t1 S fi -/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 # End of file # vim: set ts=2 sw=2 noet: |