Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Shutdown/reboot options: is "init 6" acceptable?

0 views
Skip to first unread message

Christopher D. Morgan

unread,
Feb 3, 1999, 3:00:00 AM2/3/99
to
David,

The correct method to shut down the system may depend on how you have your
start/stop scripts in /etc/init.d linked to /etc/rc?.d.

On my systems, my scripts are linked to /etc/rc3.d/S??scriptname and
/etc/rc2.d/K??scriptname. In this case, I need to execute init 2 first to
ensure that all the stop scripts are executed. Then I would issue an init
6 to perform the re-boot. Disk synching is never a bad idea ( I would
issue at least two sync commands) but the chain of events set in motion by
the init process should take care of that for you anyway.

If I were to execute an init 6, the /etc/rc2.d/K??* scripts would not be
executed and applications may therefore go down in a manor that was
unintended (think of Oracle dabases for example that typically follow a
predefined shutdown sequence as opposed to simply having their processes
terminated).

Hope this helps.

Chris


> Just a quick question about shutdown procedures. I usually do a
> manual sync;sync;sync of the disks, and then use halt to shut
> things down. Any ideas/suggestions about the various methods:
>
> 1. sync; halt
> 2. reboot
> 3. shutdown
> 4. init 6
>
> I'm particularly interested in "init 6", as the man page and FAQ don't
> shed light on whether the disks are sync'd before the OS is brought
> down. Any ideas?
>
> Thanks!
>
> Dave
> --
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> David S. Foster Univ. of California, San Diego
> Programmer/Analyst Brain Image Analysis Laboratory
> fos...@bial1.ucsd.edu Department of Psychiatry
> (619) 622-5892 8950 Via La Jolla Drive, Suite 2240
> La Jolla, CA 92037
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

chris_morgan.vcf

Ron Dilley

unread,
Feb 3, 1999, 3:00:00 AM2/3/99
to
Christopher,

If you are at rl3, init 6 will back step you through all the previous
run levels (executing all K* scripts). The system will reboot and bring
you back to rl3.

Ron

> ------------------------------------------------------------------------
> Name: chris_morgan.vcf
> chris_morgan.vcf Type: VCard (text/x-vcard)
> Encoding: 7bit
> Description: Card for Christopher D. Morgan

--
+--------------------------------------------------------+
| Ron Dilley Sr. UNIX Network Administrator |
| ron.d...@ada.com Applied Digital Access |
+--------------------------------------------------------+

LeeNMI

unread,
Feb 3, 1999, 3:00:00 AM2/3/99
to
>> > I'm particularly interested in "init 6", as the man page and FAQ don't
>> > shed light on whether the disks are sync'd before the OS is brought
>> > down. Any ideas?

init 6 tells the system to go to the default run level as defined in
/etc/inittab. It will follow all the steps in /etc/inittab leading up to the
default which is usually run level 3. cat /etc/inittab to see what your default
is.
init 6 will sync your discs.

Anthony Mandic

unread,
Feb 4, 1999, 3:00:00 AM2/4/99
to
Ron Dilley wrote:
>
> Christopher,
>
> If you are at rl3, init 6 will back step you through all the previous
> run levels (executing all K* scripts). The system will reboot and bring
> you back to rl3.

He may also want to be aware of the difference between run levels
2 and 3.

> "Christopher D. Morgan" wrote:
> >
> > The correct method to shut down the system may depend on how you have your
> > start/stop scripts in /etc/init.d linked to /etc/rc?.d.
> >
> > On my systems, my scripts are linked to /etc/rc3.d/S??scriptname and
> > /etc/rc2.d/K??scriptname. In this case, I need to execute init 2 first to
> > ensure that all the stop scripts are executed. Then I would issue an init
> > 6 to perform the re-boot. Disk synching is never a bad idea ( I would
> > issue at least two sync commands) but the chain of events set in motion by
> > the init process should take care of that for you anyway.

One sync is sufficent. And its done for you by the init routine.
(Watch the shutdown message sometime).

> > If I were to execute an init 6, the /etc/rc2.d/K??* scripts would not be
> > executed and applications may therefore go down in a manor that was
> > unintended (think of Oracle dabases for example that typically follow a
> > predefined shutdown sequence as opposed to simply having their processes
> > terminated).

Your Oracle start/stop scripts should be run at run level 3.

-am

mgo...@yahoo.com

unread,
Feb 4, 1999, 3:00:00 AM2/4/99
to
In article <36B8C634...@ada.com>,

Ron Dilley <ron.d...@ada.com> wrote:
> Christopher,
>
> If you are at rl3, init 6 will back step you through all the previous
> run levels (executing all K* scripts). The system will reboot and bring
> you back to rl3.
>
> Ron
>
> "Christopher D. Morgan" wrote:
> >
> > David,
> >
> > The correct method to shut down the system may depend on how you have your
> > start/stop scripts in /etc/init.d linked to /etc/rc?.d.
> >
> > On my systems, my scripts are linked to /etc/rc3.d/S??scriptname and
> > /etc/rc2.d/K??scriptname. In this case, I need to execute init 2 first to
> > ensure that all the stop scripts are executed. Then I would issue an init
> > 6 to perform the re-boot. Disk synching is never a bad idea ( I would
> > issue at least two sync commands) but the chain of events set in motion by
> > the init process should take care of that for you anyway.
> >
> > If I were to execute an init 6, the /etc/rc2.d/K??* scripts would not be
> > executed and applications may therefore go down in a manor that was
> > unintended (think of Oracle dabases for example that typically follow a
> > predefined shutdown sequence as opposed to simply having their processes
> > terminated).
> >
> > Hope this helps.
> >
> > Chris
> >
> > > Just a quick question about shutdown procedures. I usually do a
> > > manual sync;sync;sync of the disks, and then use halt to shut
> > > things down. Any ideas/suggestions about the various methods:
> > >
> > > 1. sync; halt
> > > 2. reboot
> > > 3. shutdown
> > > 4. init 6
> > >
> > > I'm particularly interested in "init 6", as the man page and FAQ don't
> > > shed light on whether the disks are sync'd before the OS is brought
> > > down. Any ideas?
> > >
> > > Thanks!
> > >
> > > Dave
> > > --
> > >
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > David S. Foster Univ. of California, San Diego
> > > Programmer/Analyst Brain Image Analysis Laboratory
> > > fos...@bial1.ucsd.edu Department of Psychiatry
> > > (619) 622-5892 8950 Via La Jolla Drive, Suite 2240
> > > La Jolla, CA 92037
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > ------------------------------------------------------------------------
> > Name: chris_morgan.vcf
> > chris_morgan.vcf Type: VCard (text/x-vcard)
> > Encoding: 7bit
> > Description: Card for Christopher D. Morgan
>
> --
> +--------------------------------------------------------+
> | Ron Dilley Sr. UNIX Network Administrator |
> | ron.d...@ada.com Applied Digital Access |
> +--------------------------------------------------------+
>
For quick & dirty reboot, try 'uadmin 2 1' or for halt, 'uadmin 2 0'.

Mladen Gogala

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own

0 new messages