You are not logged in.

#1 2010-10-28 19:48:02

fowler
Member
Registered: 2009-01-26
Posts: 152

Show shutdown messages

I know you modify /etc/issue to keep the startup messages on tty1.  What do you modify to show the messages as it is shutting down?

Offline

#2 2010-10-30 19:44:28

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: Show shutdown messages


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#3 2010-11-03 03:07:53

fowler
Member
Registered: 2009-01-26
Posts: 152

Re: Show shutdown messages

well, yes that is what will keep the boot messages up.  I already did that. I'm talking about showing the process as it is shutting down.  When it is shutting down all i see is a login prompt and thing it just power's off instead of showing what is shutting down.

Offline

#4 2010-11-11 16:40:03

fowler
Member
Registered: 2009-01-26
Posts: 152

Re: Show shutdown messages

I waited what I think is an appropriate amount of time to see If anyone would reply to this.  I know I've done this in the past but I can't find the wiki that said it.  Do I have to modify a shutdown script?

Offline

#5 2010-11-11 16:51:57

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: Show shutdown messages

I don't know if this will help you much but the script which does the shutdown is /etc/rc.shutdown . I guess you would have to somehow log the actions of that script so you could review it - how that could be done I do not know.


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#6 2010-11-11 21:19:22

fowler
Member
Registered: 2009-01-26
Posts: 152

Re: Show shutdown messages

i found that switching to vty8 (cnt-alt-f8) shows the shutdown messages.  How would I switch to that by default at shutdown?

Offline

#7 2010-11-11 22:22:13

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: Show shutdown messages

chvt

Offline

#8 2010-11-12 01:11:15

fowler
Member
Registered: 2009-01-26
Posts: 152

Re: Show shutdown messages

where would I put that?

Offline

#9 2010-11-12 15:31:51

fowler
Member
Registered: 2009-01-26
Posts: 152

Re: Show shutdown messages

I tried adding it to /etc/rc.shutdown as below but for some reason it didn't switch to vty8...

#!/bin/bash
#
# /etc/rc.shutdown
#

. /etc/rc.conf
. /etc/rc.d/functions

run_hook shutdown_start

# avoid staircase effect
/bin/stty onlcr

chvt 8
echo " "
printhl "Initiating Shutdown..."
echo " "
...

Offline

Board footer

Powered by FluxBB