- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- shutting down & restarting applications
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
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
02-27-2005 09:09 PM
02-27-2005 09:09 PM
shutting down & restarting applications
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2005 09:27 PM
02-27-2005 09:27 PM
Re: shutting down & restarting applications
Most applications are started in run level 3 all the links are at:
/sbin/rc3.d
some thing like this:
S823hpws_apache -> /sbin/init.d/hpws_apache
say in this i would like to stop the appache application i would do this:
/sbin/init.d/hpws_apache stop
and to start it again:
/sbin/init.d/hpws_apache start
normaly most applications started at rc3.d would be stoped at rc4.d:
/sbin/rc4.d and would look like this:
K823hpws_apache -> /sbin/init.d/hpws_apache
S - for start
K - for kill
Hope it helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2005 09:43 PM
02-27-2005 09:43 PM
Re: shutting down & restarting applications
Normally you need to only shutdown the database running.Assuming Oracle is your data base,the procedure could be the following.
Before that ensure that the front end of your application is down. This procedure is different for different setups.
Shutdown the listner before shutting down the database.See following.
=========================================================================
login as root.
#su - oradb < equivalent oracle db user >
[/home/oradb]$ ps -ef|grep tnslsnr
testing_db 16234 1 0 Feb 27 ? 1:36 /testing_db/app/oracle/product/9.2.0/bin/tnslsnr TESTING_DB -inherit
[/home/oradb]$ /testing_db/app/oracle/product/9.2.0/bin/tnslsnr TESTING_DB stop
This will stop the Oracle listener.
Shutting Down Database:-
===================================
[/home/oradb]sqlplus /nolog
SQL*Plus: Release 8.1.7.0.0 - Production on Mon Feb 28 15:58:25 2005
(c) Copyright 2000 Oracle Corporation. All rights reserved.
SQL> connect /as sysdba
Connected.
SQL> shutdown immediate
This will shutdown the database. Give some time to get the database down.
SQL>exit
After exting from sqlPlus come to root login.
#ps -ef|grep pmon
#ps -ef|grep smon
no related process should be running.
If every thing OK shutdown the server
#shutdown -h -y now
Hope this helps.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2005 09:45 PM
02-27-2005 09:45 PM
Re: shutting down & restarting applications
Speak to your DBA team before proceeding Please. They must have prepared a well defined procedure for your site on this.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2005 12:28 AM
03-01-2005 12:28 AM
Re: shutting down & restarting applications
I suspect that management doesn't trust that there will be a proper shutdown of applications before the server. If this is the problem you can just say your procedure is to do:
1) /sbin/init.d/
2) ps -ef |grep
3) shutdown (-h 0 to halt or -r 0 to reboot)
If that still isn't sufficient you can read the /sbin/init.d/
You'll of course need to determine which script does the stop and what processes to look for to verify its not running. Look at /etc/rc.log.old to see what it did during your last shutdown.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2005 03:44 AM
03-01-2005 03:44 AM
Re: shutting down & restarting applications
The only other way to start processes at boot time is with the /etc/inittab file. This, however, is NOT recommended, as this file is for system processes only. No logging to the /etc/rc.log file takes place when using inittab. Also, there is no way to gracefully stop a process when using this method.
Regards,
Mark