I Need to edit message at shutting down


 
Thread Tools Search this Thread
Operating Systems Solaris I Need to edit message at shutting down
# 1  
Old 08-04-2011
I Need to edit message at shutting down

on solaris 8 i edited file rc0 in /sbin at last line
ex.
Code:
/sbin/sync; /sbin/sync; /sbin/sync

# Unmount file systems. /usr, /var, /var/adm, /var/run are not unmounted by
# umountall because they are mounted by rcS (for single user mode) rather than
# mountall. If this is changed, mountall, umountall and rcS should also change.

/sbin/umountall
/sbin/umount /var/adm >/dev/null 2>&1
/sbin/umount /var/run >/dev/null 2>&1
/sbin/umount /var >/dev/null 2>&1
/sbin/umount /usr >/dev/null 2>&1

echo 'The system is down.'
echo 'turn off switch now'

------------------------
this work for sol8 when i shuttting down show meassge "echo 'The system is down.'
echo 'turn off switch now'" but on Solaris 10 don't work for solution
I need to edit meassge when shutting down like sol8 Please help me

Last edited by pludi; 08-10-2011 at 04:38 PM..
# 2  
Old 08-10-2011
Could the unmounting of /usr/lib with env config'd for LD_LIBRARY_PATH there and not /lib (now different) be stopping the script?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

11.2 not shutting down completely

I just installed this 11.2 ver and when I tell it to shutdown it takes for ever then just hangs with this just a little bit of that red line left to go, then it just sits there like forever until I get tired of looking at it then force a shutdown by holding my power button down until my laptop... (8 Replies)
Discussion started by: userx-bw
8 Replies

2. Fedora

Script for shutting down 48 computers

Hi All, I am pretty new to unix type languages. At work we have a server room with about 50 windows computers in one system and 50 in a unix system. We sometimes have power outages and I don't like the power slam. I wrote a windows batch file using sysinternals help to shutdown the windows... (4 Replies)
Discussion started by: Jeff Rollins
4 Replies

3. Shell Programming and Scripting

[Solved] While tomcat shutting down getting error

While tomcat shutting down getting the below error. Error occurred during initialization of VM Could not reserve enough space for code cache CATALINA_OPTS="-verbose:gc -Xloggc:gc.log -XX:+PrintGCDetails -XX:MaxPermSize=24M -Xms256M -Xmx512M -Djava.awt.headless=true -XX:-UseCompressedOops... (2 Replies)
Discussion started by: tuxslonik
2 Replies

4. AIX

Getting error while shutting down

Hi, I am getting the error "/etc/rc.shutdown failed. Shutdown aborting" while shutting down the os. Please suggest. (1 Reply)
Discussion started by: manoj.solaris
1 Replies

5. UNIX for Dummies Questions & Answers

critical temperature eached, shutting down

Hey all, I have attached an image of a problem that I've been having since last night. My computer will be on no more than 5-10 min and I'll get this message that pops up and my computer shutsdown. I know for a fact my computer is not overheated becasue I will have it off for hours and then... (7 Replies)
Discussion started by: pullmand
7 Replies

6. Solaris

Zone stuck in shutting down state.

One of my zone got stuck while rebooting in shutting down state. I tried following 1. Halt the zone with zoneadm -z zone1 halt 2. kill zoneadmd process for that zone and halt the zone but none helped me. How can i shut it down and restart it ? ---------- Post updated 10-09-09 at 01:54 AM... (0 Replies)
Discussion started by: fugitive
0 Replies

7. Ubuntu

Ubuntu Hangs when shutting down

i really dont know any other way to put it besides that Ubuntu 8.04, that i just installed on my computer hangs when it shuts down. the bar depletes the orange like it should, but it never actually shuts down. anyone know whats going on? (3 Replies)
Discussion started by: Texasone
3 Replies

8. UNIX for Dummies Questions & Answers

Shutting down the Server

Hi Is there anyway i can find out from which terminal a shutdown command has been run from ? :( (3 Replies)
Discussion started by: ktech
3 Replies

9. UNIX for Advanced & Expert Users

Shutting down Solaris

Hi I have a mix of solaris 8,9 & 10. I need to have our 6 Solaris servers shutdown buy a script that will be executed by APC network Shutdown software Im really not sure how I would write a script to shut them down and the following processes? the processes are portmapper seq seq_api... (1 Reply)
Discussion started by: tonysequoia
1 Replies

10. Solaris

shutting down oracle with the server

What can I do to ensure that oracle database is shut down when the server reboots. (1 Reply)
Discussion started by: krishan
1 Replies
Login or Register to Ask a Question