Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How to change the "Power down" message

Posted on 2003-03-11
1
Medium Priority
?
172 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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month11 days, 8 hours left to enroll

564 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