[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: fast reboot ...??
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi,
i've done it. Basically what u need to do is shutdown all
processes, send all processes the TERM & KILL ( through /sbin/killall5),
and then unmount the file systems ( especially /proc) and then start
/etc/rc.sysinit.
i wrote my own init level 7, from where i start all the shutdown
scripts of /etc/rc.d/rc5.d ( K??*)
First of all
.......create a directory /etc/rc.d/rc7.d ( /sbin/init.d/ in suse)
.......edit /etc/inittab, and add an unused runlevel specification , say
7.
.......link all the files in /etc/rc.d/init.d with the /etc/rc.d/rc7.d
with the names starting from K{num}
.......the last number say K90+ should be a script that starts up
/etc/rc.sysinit and switches to a default runlevel, with
cat /etc/inittab | egrep ^initdefault|awk -F: '{print $2}'
....... and then call init 7 / telinit 7
hope this helps
omicron
On Thu, 29 Mar 2001, Sandip Bhattacharya wrote:
> Hi!
> How do I do a fast reboot from a program or from a shell? I mean just
> removing the present kernel and loading a separete kernel? I know that
> this would kill all the present processes ... but is there a way to do
> this more gracefully? i.e. similar to a "init 0 or 6" but stopping
> just after all the TERM signals to present processes have returned ...
>
> - Sandip
>
- --
******
omicron Mail:omicron@xxxxxxxxxxxxxxxxxx
(Sridhar N) www:omicron.symonds.net
pubkeys:omicron.symonds.net/pubkeys
C O G I T O E R G O S U M
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.2 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE6xaVlL9h9beZ/GPsRAslSAJkBmakWIQPfwyujHjkBA5VjbxN1jQCfY7w5
lE27+8or5+60Q+iP0u2wuxY=
=1h/m
-----END PGP SIGNATURE-----