Any Solaris admin experts around?

gittyup

Diamond Member
Nov 7, 2000
5,036
0
0
Typically, I would install my Java application on an AIX box and add an entry into the /etc/inittab to make sure a)it's always running or b)it gets re-started if the servers gets bounced.

Now, with Solaris it's not that easy to do the same thing. I was told to place some startup script in /etc/init.d/ on Solaris and this will start the application when the server boots up.

First, I tried that and the appliation didn't start when I rebooted the server. Second, is that even the case? Any input would be appreciated on the subject. Thanks...
 

gittyup

Diamond Member
Nov 7, 2000
5,036
0
0
Well, I figured it out.

You place a startup script in /etc/init.d/myscript and make it executable.

You then create a softlink from /etc/rc[2,3].d/ < ln -s /etc/init.d/myscript S99myscript

The S in S99myscript represents start. So, when the kernal comes back up, it will start up the application. :D

 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
Originally posted by: gittyup
Well, I figured it out.

You place a startup script in /etc/init.d/myscript and make it executable.

You then create a softlink from /etc/rc[2,3].d/ < ln -s /etc/init.d/myscript S99myscript

The S in S99myscript represents start. So, when the kernal comes back up, it will start up the application. :D

I was going to reply earlier but I didn't remember how Solaris managed it's rc"X".d directories.
 

LiQiCE

Golden Member
Oct 9, 1999
1,911
0
0
Solaris supports an inittab just like AIX does. It has the Run Control areas for starting up and stopping services that don't necessarily always need to be up (some scripts may run and do something and then exit), but you should be able to put your stuff in the inittab as well.