How to setup startup script in Solaris 10
Could anyone point me out how to setup a startup script at run level 3 or 2 in solaris 10 ?
Any previous solaris such as 9, 8, I just write a script and put in /etc/init.d/, then link it to run level 3 or 2. But in solaris 10 is different now.
I could not find any in the manual.
Thanks.
[312 byte] By [
QuaNonga] at [2007-11-26 21:23:46]

# 1
> Could anyone point me out how to setup a startup
> script at run level 3 or 2 in solaris 10 ?
> Any previous solaris such as 9, 8, I just write a
> script and put in /etc/init.d/, then link it to run
> level 3 or 2.
You can do the same thing in Solaris 10.
> But in solaris 10 is different now.
There are alternative methods that are recommended (creating a service via a manifest file), but the old startup stuff still works just fine. You don't get the benefits of monitoring and fine-grained dependencies with the legacy startup scripts.
> I could not find any in the manual.
An older doc is http://mediacast.sun.com/share/bobn/SMF-migrate.pdf. You might also check the SMF FAQ.
http://opensolaris.org/os/community/smf/faq/ Section 4 is on manifest development.
--
Darren