cvs commit: src/sbin/reboot reboot.c

Scott Long scottl at
Mon Aug 7 07:43:11 UTC 2006

Dag-Erling Smørgrav wrote:
> "Daniel O'Connor" <doconnor at> writes:
>>On Monday 07 August 2006 01:52, Dag-Erling Smørgrav wrote:
>>>Wouldn't it be more logical to have init(8) perform the reboot(2)
>>>call upon receiving a signal from reboot(8)?
>>You wouldn't be able to reboot the system in single user mode then
>>would you?
> Why not?  FreeBSD is not Linux - it always runs init, even in
> single-user mode.

sysinstall is an example of an init-like program that isn't init.  There
are also many good uses for a custom init-like program for embedded
systems.  Not all the world is multi-user, and flexibility is very
important.  If you want to declare a new requirement that all init-like
programs are now responsible for managing the reboot(2) call themselves,
that's fine, but it'll need more documentation and effort than just a
passing commit to src/sbin/init.


More information about the cvs-src mailing list