- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Order on boot
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
Discussions
Discussions
Forums
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
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
тАО04-24-2002 06:37 AM
тАО04-24-2002 06:37 AM
There is any problem if I put several link on /sbin/rc3.d with the same number ?
S100nfs.server -> /sbin/init.d/nfs.server
S999dbora -> /sbin/init.d/dbora
K100dbora -> /sbin/init.d/dbora
The problem is that I reboot the machine and there is not a normal database stop, so while I start the machine, the bbdd starts right.
The DBA told me the Oracle process are kill with kill -15 ???
The script TO start an shut the bbdd:
case $1 in
start_msg)
echo "Start the Oracle Database and Listener"
;;
stop_msg)
echo "Stop the Oracle Database and Listener"
;;
'start')
/usr/bin/su - oracle8 -c "/oracle/bin/dbstart"
/usr/bin/su - oracle8 -c "/oracle/bin/lsnrctl start LISTENER_STU02"
/usr/bin/su - oracle8 -c "/oracle/bin/lsnrctl start LISTENER_STU022"
;;
'stop')
/usr/bin/su - oracle8 -c /oracle/bin/dbshut_i
/usr/bin/su - oracle8 -c "/oracle/bin/lsnrctl stop LISTENER_STU02"
/usr/bin/su - oracle8 -c "/oracle/bin/lsnrctl stop LISTENER_STU022"
;;
esac
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2002 06:40 AM
тАО04-24-2002 06:40 AM
Re: Order on boot
GL,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2002 06:45 AM
тАО04-24-2002 06:45 AM
Re: Order on boot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2002 06:46 AM
тАО04-24-2002 06:46 AM
Re: Order on boot
There are two rules-of-thumb for startup/stop scripts:
1) The value of the S & K scripts *should* equal 1000 - usually the S is larger.
2) The K stop script *should* be one run-level lower then the S startup scipt.
These are not hard & fast rules and are NOT required.
I guess you could term them "etiquette". I find doing them this way makes it easier to find them when necessary.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2002 06:48 AM
тАО04-24-2002 06:48 AM
Re: Order on boot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2002 06:49 AM
тАО04-24-2002 06:49 AM
SolutionYour K100dbora link should be in /sbin/rc2.d not rc3.d.
Placed as it is in rc3.d, it would only get called if you were shutting down from runlevel 4 (or higher).
The runlevel that the system boots to is driven by the init entry (first line) of /etc/inittab. For example...
init:3:initdefault:
The system will boot automatically to runlevel 3.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2002 06:50 AM
тАО04-24-2002 06:50 AM
Re: Order on boot
there is no problem if you have several Start- or Kill- scripts with the same passing number. But please remember, they are run in alphabetical order after the numbers. Are there dependencies, means must one of those scripts with the same numbers been run before another one is run? Would a service been started with one of these scripts not work if another one is not started so far?
If you take care of this problem, this should work for you.
Your DBA is right, oracle is stopped first with killing signal -15. But if this does not work, it's also stopped with kill signal -9 by the killall-script, which kills all services and processes that are not yet stopped. (Kill scripts failed....)
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2002 06:51 AM
тАО04-24-2002 06:51 AM
Re: Order on boot
I couldn't find 'several links with the same number' in your example. If you are talking about 'S100' and 'K100', then that's not a problem since 'S' stands for start and 'K' stands for kill scripts.
If you are talking about configuring the start and kill scripts in the same run level, then it's not a good practise. Normally if a process starts at run level-2, then the kill script will be in run level-1 and the total number could be '1000' (Sxxx+Kxxx=1000). This is the normal practise.
I would suggest you to put your dbora kill script in /sbin/rc0.d. Always remember to kill the last started process first.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2002 07:04 AM
тАО04-24-2002 07:04 AM
Re: Order on boot
If you do a 'who -r', your current runlevel is shown.
The Kxxx of the same level will not be executed.
So.. /sbin/init.d/dbora should be linked as:
/sbin/rc3.d/Sxxx and
/sbin/rc2.d/Kyyy
,where xxx+yyy=1000.
But.. as said by others.. a number is just a number.
Regards,
Ceesjan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2002 07:27 AM
тАО04-24-2002 07:27 AM
Re: Order on boot
When I stop the machine, it go to level 2 to see what to stop, so the K100dbora on level 3 does not run.
Thank you very much.