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
05-31-2004 12:51 AM
05-31-2004 12:51 AM
startup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2004 12:57 AM
05-31-2004 12:57 AM
Re: startup
Create symbolic links to these scripts as follows:
Place startup script links in the /sbin/rcN.d directory, (where N is the run level in which you want the subsystem to be started), and place shutdown script links in the /sbin/rcN-1.d directory (so that the subsystem will be shut down when entering run level N-1 from a higher run level).
The naming convention for startup and shutdown links is as follows:
startup: S
shutdown: K
where S stands for "start" and K stands for "kill", seqn is the sequence number, and script_name is the name of the script in /sbin/init.d. Sequence numbers for startup and shutdown are typically not the same.
Look a a script in /sbin/init.d as an example..
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2004 01:12 AM
05-31-2004 01:12 AM
Re: startup
Let us assume you have scirpt in /opt/mangesh/myscirpt and you want your script to start at run level 2 (multiuser) and stop at run level 0.
# cp /opt/mangesh/myscript /sbin/init.d
# cd /sbin/rc2.d
# ln -s /sbin/init.d/myscript S
# cd /sbin/rc0.d
# ln -s /sbin/init.d/myscript K
That all.
Remeber sequence number you can decide on your own but should be unique. It will decide the execution priority. For example S100... will be executed first and S101... afterwards.
Hope this helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2004 02:57 AM
05-31-2004 02:57 AM
Re: startup
In addition to the previous correct recommendations please find an example of a start/stop script according to HPUX standards. Please put your attention on a configuration file located in /etc/rc.config.d/netconf. You can cancel start up of the application changing flag in the file.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2004 04:03 PM
05-31-2004 04:03 PM
Re: startup
thanks for ur quick response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2004 04:28 PM
05-31-2004 04:28 PM
Re: startup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2004 04:46 PM
05-31-2004 04:46 PM
Re: startup
That is also explained in the previous response given by geoff and me.
You only have to create link to the script in rc0.d which start's with K (it stands for kill) and argument stop is passed to your script.
Similarly for startup another link is placed in rc2.d which starts with S ( it stands for start ) and aurgument start is passed to your sript.
That's all.
Regards,