place to put statup scripts?

I have written a script to start websphere server, I dont know where to put
the file in the OS . please put me the place to put the starup scripts in linux, solaris and AIX?

In Linux and Solaris, traditionally, the startup scripts are in /etc/init.d directory, with a link in /etc/rc2.d or /etc/rc3.d (depending on whether it has to start in runlevel 2 or 3) with name similar to S99scriptname (where scriptname is the name of the script in /etc/init.d).

AIX should have a similar setup, but any AIX guys, please confirm this.

Now, if you are using Solaris 10, you can still use the startup scripts as explained above, but it would be better to start using the service management framework. See 'man smf' for more details. You could also check in 'Tips and Tutorials' for Tornado's post on how to create a Solaris 10 service.

what is meant by run level and how to determine that?