- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How can i add a application startup script while b...
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-15-2009 01:53 PM
тАО05-15-2009 01:53 PM
I have a weblogic application startup script with me, The senario is everytime the server maintenance activity rebooting i need to start the script and wait for the application to get started.
These isint should happen, I need to add the script while booting
Please suggest me how can i do this
Eg :
Path :
#cd /weblogic/user-projects/domain/KYEDomain
#nohup ./startWebLogic.sh
Needs to be added in /etc/inittab
How can i do this ,Your ans is appriciated
Haris
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2009 04:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2009 05:11 PM
тАО05-15-2009 05:11 PM
Re: How can i add a application startup script while booting
yes you can put this scrip in rc.local which will execute after all other system init scripts.
if you are not really sure go through below sample script you can modify acordingly, thanks,
http://www.comptechdoc.org/os/linux/startupman/linux_surclocal.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2009 08:31 AM
тАО05-16-2009 08:31 AM
Re: How can i add a application startup script while booting
You got the right answer from all above. "/etc/rc.local" is the final place that kernel look for any startup scripts during the boot process.
you can put your commands on this file
writing all the commands you want to execute at the boot time as a shell script and put that shell script path on rc.local file is what i do and recommend.
Good Luck..!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2009 10:03 AM
тАО05-16-2009 10:03 AM
Re: How can i add a application startup script while booting
But i have only these files with me. do i need to create the file as "/etc/rc.d/rc.local" and "/etc/rc.d/rc3.d/S99.local"
lrwxrwxrwx 1 root root 6 Feb 11 2008 rc.d -> init.d
-rw-r--r-- 1 root root 611 May 21 2002 rc.d.README
-rw-r--r-- 1 root root 8548 Aug 18 2003 rc.status
As im new to SUSE linux please help me out.
Thanks
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2009 10:09 PM
тАО05-17-2009 10:09 PM
Re: How can i add a application startup script while booting
rc.local file is already there and all you need to add your commands to that file or add the paths to shell scripts on that files.
by the way please show some appreciation for all that gave you answers with points.
Good Luck..!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2009 01:58 AM
тАО05-18-2009 01:58 AM
Re: How can i add a application startup script while booting
The easiest way to add startup things open /etc/rc.d/rc.local and add what you want to this is the startup file for user.
[root@rspc521 rc.d]# ll rc.local
-rwxr-xr-x 1 root root 220 Jun 24 2003 rc.local
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2009 02:34 AM
тАО05-18-2009 02:34 AM
Re: How can i add a application startup script while booting
But! if you need it to execute on a specific position in the startup sequence then you need probably need to study the method used to start and shutdown services for that particular distribution.
If you just need it to start without any other dependencies or anything then rc.local version is just fine and probably the most simple one.
Best regards
Fredrik Eriksson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2009 03:51 AM
тАО05-18-2009 03:51 AM
Re: How can i add a application startup script while booting
Normaly doing by making an entry in
/etc/rc.d/rc.local file this easiest and most simple way.
thanks and regards
Sajjad Sahir