Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Mar 2001 11:48:46 -0500
From:      Coleman Kane <cokane@FreeBSD.ORG>
To:        Ian Dowse <iedowse@maths.tcd.ie>
Cc:        Peter Jeremy <peter.jeremy@alcatel.com.au>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/sbin/reboot reboot.c
Message-ID:  <20010326114846.A83061@cokane.yi.org>
In-Reply-To: <200103222207.aa91848@salmon.maths.tcd.ie>; from iedowse@maths.tcd.ie on Thu, Mar 22, 2001 at 10:07:49PM %2B0000
References:  <20010323080736.A8221@gsmx07.alcatel.com.au> <200103222207.aa91848@salmon.maths.tcd.ie>

next in thread | previous in thread | raw e-mail | index | archive | help

--uAKRQypu60I7Lcqm
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

I am in agreement with Kris and Garrett on this one. I too have seen
Linux init hold up the system until it is powered off. Typically, this
is because of my own stupidity, but it is nice to be able to seperately
down the box gracefully.

Ian Dowse had the audacity to say:
>=20
> In message <20010323080736.A8221@gsmx07.alcatel.com.au>, Peter Jeremy wri=
tes:
> >
> >Instead of moving the common functionality into a common library,
> >why not move it into a common process.  Why can't reboot(8) just
> >ask init(8) to massacre all the processes and reboot?  (Or, vice
> >versa, init could spawn reboot(8) to do the same thing).
>=20
> This had certainly crossed my mind too, but for reasons already
> suggested, it doesn't seem the right thing to do. I'm not convinced
> that libutil is the right place for such code either - it's not
> useful enough to appear in a fairly widely-used library.
>=20
> Two other not-so-elegant approaches are:
>=20
> - Share a source file between reboot and init.
>=20
> - Make reboot(8) and halt(8) hard links to init(8), and have init
>   do the right thing according to argv[0].
>=20
> Ian
>=20

--uAKRQypu60I7Lcqm
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE6v3LsERViMObJ880RAS09AJ96Ul4LJjdEh3h2O6kOpvoaDZjcgQCgxx2o
8E/naUUYxOG0eSgBUXXBf40=
=7pz4
-----END PGP SIGNATURE-----

--uAKRQypu60I7Lcqm--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010326114846.A83061>