- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: start up application scripts into start up of ...
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
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
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
09-19-2011 08:25 AM
09-19-2011 08:25 AM
start up application scripts into start up of the server
Hi,
i want to include the start up application scripts into start up of the server so that our application can be started with server boot up.
How can i do it that ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2011 08:31 AM
09-19-2011 08:31 AM
Re: start up application scripts into start up of the server
Take a look at the man page for rc. It's all documented there.
Pete
- Tags:
- rc(1M)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2011 08:45 AM
09-19-2011 08:45 AM
Re: start up application scripts into start up of the server
(what pete said!)
you should have a file called -- /sbin/init.d/template -- on your system. You can use that as a starting point. You can also use any existing scripts. Whatever file you decide to start with, copy it to a new file name.
Inside your new RC file, you'll see places to add a start message, a stop message, the start command, and the stop command. These messages and commands are used by the system during the boot up process. There is also a check for a $CONTROL_VARIABLE before the start and stop commands are issued. This $CONTROL_VARIABLE needs to be named by you, and a corresponding file in the /etc/rc.config.d directory defines the variable as 1 or 0. If the variable is defined as 1, then the subsystem is started up at boot time. If it is not set to 1, then the subsystem is not started. This file makes it very easy to add/subtract the subsystem from the boot sequence.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2011 09:05 AM
09-19-2011 09:05 AM
Re: start up application scripts into start up of the server
Hi:
To add, aside from following the configuration/instructions you will find in the manpages for 'rc(1M)' be very sure that you do not store backup copies of any of the scripts in the '/etc/rc.config.d' directory *unless* carefully follow the documented in the '/etc/rc.config' script!
Regards!
...JRF...