- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: shutdown
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
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-29-2000 02:58 AM
08-29-2000 02:58 AM
shutdown
In HP-UX 10.20,
I want to include on shutdown -r -y 0 script the followings:
/usr/bin/su -u res -c "/stm/res/sh/ec_stop.sh res"
/usr/bin/su -u oracle -c "/oracle/product/8.0.5/bin/dbshut"
/usr/bin/su -u oracle -c "/oracle/product/8.0.5/bin/dbstart"
/usr/bin/su -u res -c "/stm/res/sh/ec_start.sh res"
Thanks
Augusto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2000 03:03 AM
08-29-2000 03:03 AM
Re: shutdown
it will describe how to add/remove things to startup/shutdown.
There is a template script in /sbin/init.d/template
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2000 03:20 AM
08-29-2000 03:20 AM
Re: shutdown
You really want 2 scripts in /sbin/init.d, one for oracle and one for res. Each one should look something like this;
#!/sbin/sh
PATH=/sbin:/usr/sbin:/usr/bin
export PATH
case $1 in
start_msg)
echo "Start Oracle"
;;
stop_msg)
echo "Stop Oracle"
;;
start)
/usr/bin/su -u oracle -c "/oracle/product/8.0.5/bin/dbstart"
;;
stop)
/usr/bin/su -u oracle -c "/oracle/product/8.0.5/bin/dbshut"
;;
*)
echo "Usage: $0 start|stop" >&2
exit 1
;;
esac
And modify the necessary bits above for the res script. Now, to start/stop oracle/res do /sbin/init.d/<script> start or stop. To hook them into the startup/shutdown you need to add a symbolic link in /etc/rc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2000 03:30 AM
08-29-2000 03:30 AM
Re: shutdown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2000 03:52 AM
08-29-2000 03:52 AM
Re: shutdown
See the solution to your question from this previous thread through this link: http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x5195c3d7fb78d4118fef0090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2000 03:58 AM
08-29-2000 03:58 AM
Re: shutdown
An excellent whitepaper on the architecture of startup & shutdown, in general, can be downloaded from:
http://docs.hp.com/hpux/content/startup.pdf
This will describe the proper way of setting up startup and shutdown of tasks in a prescribed order. Since the standard system processes are done here, you will see how and where to interleave your own (see the comments in Stefan's post, above, in particular.
...JRF...