how do I start a script in run level 3 in solaris?

Hi,

how do I start a script in run level 3 in solaris?

Ideally you would put the script in /etc/init.d and you would then create a link to it in /etc/rc3.d with a name beginning with S01 to S99 to tell it where in the startup sequence you want it to start.

The documentation in on http://docs.sun.com

By the way, run levels and rc*.d scripts are still supported but obsoleted by milestones and SMF in Solaris 10 and newer.

You should create a service manifest instead of the old System V method.

Sun Microsystems - BigAdmin: Solaris Service Management Facility - Service Developer Introduction

Since Solaris 10 was not entioned and run level 3 was I had made the assumption that this was not Salaris 10, if I was incorrect in this assumption I would also advise using SMF and starting your sevice at milestone multi-user-server or milestone all.

Indeed. I should have written:

If you are using Solaris 10 or newer, you should create a service manifest ...