Computing.Net > Forums > Solaris > Starting an application at bootup

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Starting an application at bootup

Reply to Message Icon

Name: Krishna Prasad
Date: July 8, 2002 at 20:59:43 Pacific
Comment:

Hi! i have a requirement that when we install our application in a solaris machine it should register itself as a boot up application. I also got some inputs on this that there should be some run scripts that should be copied into the rc folder. But i'm not sure exactly what the content of the script should. Could anyone please help me in knowing what should be written in this script for my application to start at system boot up. I heard that this is similar to services in windows.

I'm developing an installer for one of our products and this is a requirement for me to implement.



Sponsored Link
Ads by Google

Response Number 1
Name: Sateesh Mucharla
Date: July 9, 2002 at 11:17:37 Pacific
Reply:

On Solaris machines: Usually custom scripts are kept in /etc/rc3.d directory. This is level 3 startup scripts directory. Please read /etc/rc3.d/README file more info.

If application needs to be started in level 2 you need to place your script in /etc/rc2.d directory.

Please see also /etc/init.d/README.

Example scripts: There are many in /etc/rc2.d directory. You can use the same structure for the program.

Hope this helps.


0

Response Number 2
Name: Krishna Prasad
Date: July 13, 2002 at 00:49:20 Pacific
Reply:

Actually i have written a script for this which creates a link for the file i need to launch in the /etc/rc3.d directory. I'm running this script from my application and this creates a link for another script which launches the application. I hope this launches my application at startup.

Could you please tell me whether this approach is right. And what is the difference by running an application in 2nd level and 3rd level.

Thanks for ur response.



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Problems installing solar... WHATS SOLARIS????



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: Starting an application at bootup

Exit console kills bg processes!! www.computing.net/answers/solaris/exit-console-kills-bg-processes/3519.html

How to exit the console ? www.computing.net/answers/solaris/how-to-exit-the-console-/1875.html

finding libraries during startup www.computing.net/answers/solaris/finding-libraries-during-startup/2056.html