- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: boot script denomination
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 05:45 AM
08-21-2002 05:45 AM
boot script denomination
I ask for help. I have written a script to boot
procedure. This script starts after S100nfs.server during the boot and works well.
I'd like know wich file contains the denomination of this script appeared in the console during boot.
Now on the console I can see .......[OK]
What method me must apply to appear the text?
Thanks! Regards, Tamas S.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 05:48 AM
08-21-2002 05:48 AM
Re: boot script denomination
/etc/rc.log
/etc/rc.log.old
Also you can pipe the outputs of the scripts to a file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 05:48 AM
08-21-2002 05:48 AM
Re: boot script denomination
You should have two more case statements in your /sbin/init.d script - start_msg and stop_msg that prints the required message. Look at other files in /sbin/init.d/ for more details and syntax.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 05:49 AM
08-21-2002 05:49 AM
Re: boot script denomination
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 05:50 AM
08-21-2002 05:50 AM
Re: boot script denomination
You do this by two different entries in the start/stop script. Example :
...
case $1 in
'start_msg')
# Emit a _short_ message relating to running this script with
# the "start" argument; this message appears as part of the checklist.
echo "Starting the Enterprise ControlStation subsystem"
;;
'stop_msg')
# Emit a _short_ message relating to running this script with
# the "stop" argument; this message appears as part of the checklist.
echo "Stopping the Enterprise ControlStation subsystem"
;;
'start')
...
The entries 'start_msg' and 'stop_msg' contain those texts ...
Regards,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 05:51 AM
08-21-2002 05:51 AM
Re: boot script denomination
case $1 in
start_msg)
echo "Start NFS server subsystem"
;;
stop_msg)
echo "Stop NFS server subsystem"
;;
start)
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 05:54 AM
08-21-2002 05:54 AM
Re: boot script denomination
Use a text editor to examine any file in /sbin/init.d. You will notice that in addition to the traditional start) and stop) sections, HP-UX adds start_msg) and stop_msg) sections to the rcN.d files. If you add a start_msg) echo "Starting my stuff"
;;
to the case statement, you will see the prompt.
The best way to do this is to examine the file
/sbin/init.d/template.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 05:57 AM
08-21-2002 05:57 AM
Re: boot script denomination
case $1 in
start_msg)
echo "Message on boot screen"
;;
start)
echo "this is the script to run"
;;
esac
Each script is called 2 times. First to build a table of start_messages from scripts, then actually running them. (script return code displayed as OK or FAIL)
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 06:15 AM
08-21-2002 06:15 AM
Re: boot script denomination
You should start with '/sbin/init.d/template' *as* the skeletal template for your script. *Add* your code to it by following the instructions (comments) contained in the template file itself. The man pages for 'rc' also describe the basic model you should follow in order for your script to reflect its execution in '/etc/rc.log' and on the console checklist correctly. Pay close attention to the discussion of return codes too.
Regards!
...JRF...