In another thread
Originally Posted by barti
Why init 6 does not make the restart?
or init 0 shutdown?
BSD is not Linux. They look similar, as they are both "Unix-like" but they are not the same. In this instance, the chmod(2)
on OpenBSD is only executed by the kernel, not by an administrative command. As described in the init(8) man page, chmod(2)
may be used to signal init to terminate multi-user state and resume in single-user mode.
It is not the same program as the Linux init program.
On OpenBSD, you restart or halt with chmod(2)
and you may, if you ever have multiple shell users, use chmod(2)
to notify users and manage timing of restart or halt execution.