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

Automatic Shutdown/Reboot

0 views
Skip to first unread message

Jon Hoffman

unread,
Mar 2, 1999, 3:00:00 AM3/2/99
to
Does anyone know how to initiate an automatic shutdown/reboot with
Cron? I noticed the reboot command is like haltsys so will not clean out the
computer the way shutdown does. Also Shutdown doesn't seem to have a reboot
option that I can see. Any help is greatly appreciated. :)
-Jon

Jean-Pierre Radley

unread,
Mar 2, 1999, 3:00:00 AM3/2/99
to
Jon Hoffman averred (on Tue, Mar 02, 1999 at 11:43:28AM -0800):

And the -i6 option for shutdwon does what?

--
Jean-Pierre Radley <j...@jpr.com> XC/XT Custodian Sysop, CompuServe SCOForum

Jeff Holloway

unread,
Mar 2, 1999, 3:00:00 AM3/2/99
to
Jean-Pierre Radley <j...@jpr.com> wrote:
> Jon Hoffman averred (on Tue, Mar 02, 1999 at 11:43:28AM -0800):
> | Does anyone know how to initiate an automatic shutdown/reboot with
> | Cron? I noticed the reboot command is like haltsys so will not clean out the
> | computer the way shutdown does. Also Shutdown doesn't seem to have a reboot
> | option that I can see. Any help is greatly appreciated. :)

> And the -i6 option for shutdwon does what?

Not to mention the -i6 option for shutdown...:)

Jeff

--
Jeff Holloway | He had that rare weird electricity about him --
System Administrator | that extremely wild and heavy presence that you
Tech 7 Systems, Inc. | only see in a person who has abandoned all hope
je...@tech7.com | of ever behaving "normally" - Hunter S. Thompson,
| "Fear and Loathing '72"
Not a member of the Lumber Cartel (tinlc) and not Unit #1572

Tony Lawrence

unread,
Mar 2, 1999, 3:00:00 AM3/2/99
to
Jean-Pierre Radley wrote:
>
> Jon Hoffman averred (on Tue, Mar 02, 1999 at 11:43:28AM -0800):
> | Does anyone know how to initiate an automatic shutdown/reboot with
> | Cron? I noticed the reboot command is like haltsys so will not clean out the
> | computer the way shutdown does. Also Shutdown doesn't seem to have a reboot
> | option that I can see. Any help is greatly appreciated. :)
>
> And the -i6 option for shutdwon does what?

Whatever inittab tells init to do for run state 6 :-)

The reason I bring that up is that I've had a situation where, for their
own esoteric reasons, a client wanted to disable the -i6 option so that
it would NOT reboot. That's simple enough to do, because the only thing
that causes the reboot is the "uadmin 2 1" in inittab.

It's interesting to note that the /etc/reboot command doesn't call
"uadmin 2 1"; it calls "uadmin 2 2", which is what init 5 calls.

--
Tony Lawrence (to...@aplawrence.com)
SCO ACE
SCO articles, help, book reviews: http://www.aplawrence.com

masked avenger

unread,
Mar 3, 1999, 3:00:00 AM3/3/99
to
try this in cron { 0 7 * * 0 /etc/shutdown -i5 -g0 -y} this bounces the server every
sunday at 7:00 A.M

Philippe Allouche

unread,
Mar 5, 1999, 3:00:00 AM3/5/99
to
Jon Hoffman wrote:

> Does anyone know how to initiate an automatic shutdown/reboot with
> Cron? I noticed the reboot command is like haltsys so will not clean out the
> computer the way shutdown does. Also Shutdown doesn't seem to have a reboot
> option that I can see. Any help is greatly appreciated. :)

> -Jon

init 6


0 new messages