- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: script to run during start-up
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
тАО03-17-2010 08:11 PM
тАО03-17-2010 08:11 PM
OS: 11i v3 (2 clustered machines)
Actually, I want below script will run during server start-up.
#############################################
#more /home/oracle/Performance/run
/opt/java6/bin/java -jar SystemPerformance.jar false true > /dev/null &
#############################################
Please advise me how to do that?
Thanks in-advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2010 08:36 PM
тАО03-17-2010 08:36 PM
Re: script to run during start-up
(S-> capital StartScript,XXX
[/sbin/rc3.d] # touch SXXXPerfjava
[/sbin/rc3.d] # ln -s {target-filename} {symbolic-filename}
Example :-
lrwxr-xr-x 1 root sys 19 May 9 2009 S920OVCtrl -> /sbin/init.d/OVCtrl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2010 11:23 PM
тАО03-17-2010 11:23 PM
Re: script to run during start-up
also it would better to place under "Cluster .pkg,file"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2010 11:23 PM
тАО03-17-2010 11:23 PM
Re: script to run during start-up
so my steps should be like this right?
at cd /sbin/rc3.d
1. #touch S123Perfjava
2. #ln -s /home/oracle/Performance/run S123Perfjava
done. Ok?
Thanks Johnson.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2010 11:23 PM
тАО03-17-2010 11:23 PM
SolutionYou must not use the above script directly. The above fragment should be inserted into a copy of the standard rc(1m) template: /sbin/init.d/template
Note that the rc(1m) scripts have 4 possible parm values:
start_msg stop_msg start stop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2010 01:27 AM
тАО03-18-2010 01:27 AM
Re: script to run during start-up
So, what is the best practise?
Thanks alot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2010 01:48 AM
тАО03-18-2010 01:48 AM
Re: script to run during start-up
Hi shukur,
startup scripts need to follow the paradigm described in this (still valid whitepatper):
http://www.docs.hp.com/en/934/startup.pdf
...or in the manpages for 'rc(1M)':
http://www.docs.hp.com/en/B3921-60631/rc.1M.html
Use the '/sbin/init.d/template' file as the template to begin building *your* script