?
Solved

How to change the "Power down" message

Posted on 2003-03-11
1
Medium Priority
?
168 Views
Last Modified: 2013-12-15
When I run shoutdown on my RH 7.3 server the final message says "Power down". I have apm support disabled in the kernel, so the message stays there, and thats how I want it. I would like however to change the message from "Power down" to something more meaningful to the end users, like "Safe to power off - Press CTRL-ALT-DEL to restart.." , etc. Is that possible?
0
Comment
Question by:medent
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
naccad earned 400 total points
ID: 8110987
Actually that messages is part of the kernel image.
The only way to change it is to hack the kernel source
The exact location is (on a RH73 system)

/usr/src/linux-2.4/kernel/sys.c (linue 353 to be exact).

The other is of course to edit the init scripts
Look at /etc/init.d/halt and the directory /etc/rc0.d

in rc0.d, all the K scripts run 1st and then the S scripts
for example

K00apache
K01ftpd
K02gpm
K03named
.
.
.
S00killall
S01halt

and so on.

tc
-nick
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month13 days, 15 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question