- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: i want to add stop and strtup script in system...
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
тАО05-14-2009 12:05 PM
тАО05-14-2009 12:05 PM
o Execute the script : /appl/control_m/agent/scripts/control_s7p.sh stop
o Script must be execute by uid : root
тАв Startup
o Execute the script : /appl/control_m/agent/scripts/control_s7p.sh start
o Script must be execute by uid : root
Where can i add these scripts so that it automatically stop when system going down and start when sytaem coming up.
in /sbin/rc.d
tell me the complete commands.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 12:14 PM
тАО05-14-2009 12:14 PM
SolutionHi:
You need to acquaint yourself with the 'rc' (run control) scripts.
I _urge_ you to take the time to begin by reading:
http://docs.hp.com/en/934/startup.pdf
This whitepaper is _still_ valid and is summarized in the 'rc(1M)' manpages too:
http://docs.hp.com/en/B2355-60130/rc.1M.html
Be sure to copy and use '/sbin/init.d/template' as the model for your start/stop needs.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 12:24 PM
тАО05-14-2009 12:24 PM
Re: i want to add stop and strtup script in system startup and shutdown procedure ,
but can you tell me now how can we add these scripts,
i have to add it to /sbin/init.d adn have linked to /sbin/rc''
can you tell me the procedure or the commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 12:39 PM
тАО05-14-2009 12:39 PM
Re: i want to add stop and strtup script in system startup and shutdown procedure ,
> but can you tell me now how can we add these scripts, i have to add it to /sbin/init.d adn have linked to /sbin/rc''
Do you mean how you create the symbolic links? Then, something like:
# ln -s /sbin/init.d/s7p /sbin/rc3.d/S900s7p
# ln -s /sbin/init.d/s7p /sbin/rc2.d/K100s7p
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 05:50 PM
тАО05-14-2009 05:50 PM
Re: i want to add stop and strtup script in system startup and shutdown procedure ,
You really need to read the startup document mentioned above. The directory /sbin/init.d is a collection of all start/stop scripts. To get them to run in the right order, you create symbolic links in the special rc directories. But you can also leave the start/stop script in the control_m directory. The symbolic links are run in alphabetical order and must start with "S" typically followed by a 3 digit number and then the name of your start script. The purpose of the S123 prefix is to set the order of startup. The same is true with "K" symbolic links for proper shutdown.
Bill Hassell, sysadmin