During boot the system hangs, and the last message while it hangs is: Starting system logger: Can't open or create /var/run/syslogd.pid. Can't write pid.
After a while I discovered that /etc/init/rc.sysinit was corrupted - the first line was:
#!/bin/bsh
instead of:
#!/bin/bash
Why that mistake resulted this result? Why specifically this error?