handle runlevel 0 and 6 correctly