The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Executing a script at startup sridharr83 HP-UX 4 12-21-2007 05:07 AM
Executing set of sh files at system startup appleforme1415 SuSE 1 05-15-2007 10:05 AM
Not executing during startup mhenryj AIX 2 06-13-2006 06:52 PM
System Startup Time shoeb_syed UNIX for Dummies Questions & Answers 6 03-17-2006 01:56 AM
How can I add my own service when system startup? wilsonchan1000 UNIX for Dummies Questions & Answers 6 10-24-2002 05:23 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-15-2007
appleforme1415 appleforme1415 is offline
Registered User
  
 

Join Date: May 2007
Posts: 29
Executing sh files at System Startup

Hi Everybody

I am totally new to Unix
Currently we have 4 to 5 shell scripts which needs to be executed manually by the users.I want these scripts to be run automatically when system starts...something like system startup service.

When system is shutdown, all these process should be shutdown normally without any problem.

At the sametime ,if i want to start or stop those processes through User interface(Java Swing based application), i need a way to do the same .

we hav developed application in Java which is running on Linux platform.
  #2 (permalink)  
Old 05-15-2007
Shell_Life's Avatar
Shell_Life Shell_Life is offline
Registered User
  
 

Join Date: Mar 2007
Location: Bahia, Brazil
Posts: 695
Apple,
The forum does not allow duplicate posting.
One of the Moderators will take action.
  #3 (permalink)  
Old 05-15-2007
appleforme1415 appleforme1415 is offline
Registered User
  
 

Join Date: May 2007
Posts: 29
Hello Shell,

later only i came to know there is separate forums for Linux.
anyway if u know the solution kindly do write it.

Thanks
  #4 (permalink)  
Old 05-15-2007
Shell_Life's Avatar
Shell_Life Shell_Life is offline
Registered User
  
 

Join Date: Mar 2007
Location: Bahia, Brazil
Posts: 695
Apple,
I will let an unix administrator answer this question to you.
  #5 (permalink)  
Old 05-15-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,323
Shell script may reside in rc.local file, in /etc/init.d ; in .bash_profile of the respective user, depending on the OS and system config.
The java application is kinda unclear : "java -jar your-controller.jar stop" - something like that ?
  #6 (permalink)  
Old 05-15-2007
kapilraj kapilraj is offline
Registered User
  
 

Join Date: Dec 2006
Location: Maryland
Posts: 162
you will need to place the startup scripts in rc2.d and the stop scripts in rc1.d , "man rc " will tell you exactly how and where the directories will need to be present. It is different for different operating systems. I have no worked on SusE a lot , but I can surely give you that hint.

Regards, Kaps
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:06 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0