(Some comments inline, though they are out of order.)

Jeff Cheeney wrote:
> Shampavman wrote:
>> Hi all,
>> I would like to know how to write an rc script?
>> Am planning on doing some memory management during the boot itself, so 
>> planning on implementing it through the rc scripts....
>> I wanted to know what the constraints are ,how the script itself need to 
>> be designed, and all such stuffs!!!
>>
>> Also is there a possibility that i can call certain files from elsewhere 
>> in the rc scripts, and execute them..
>> Eg: suppose i want to mount the entire swap on /tmp very early on in the 
>> boot...
>> So i write a script that mounts swap then can i call this script in say, 
>> rc1 and expect the mounting to be done?

You sound like you're looking to do deeper integration with OpenSolaris, 
if you're talking about changing the mounting order of filesystems.

In general, no, you shouldn't just call other startup scripts on the system.

Instead, you should create a service which depends on the things you 
require.  Then you can make other services depend on your services by 
using "dependents".  If you can't do that because your service depends 
on something that starts "too late", you'll need to work with the folks 
who own the service you need earlier.  In general, people haven't made 
core OS services start late for no good reason -- they start where they 
start because they depend on other services.  Making them start earlier 
will break certain configurations of the OS that you might not have 
considered yet.

>>
>> PS: If this is not the right list. please guide me to one!
>>        I felt this was the closest mailing list.
>>
>>   
> 
> rc scripts are a thing of the past in OpenSolaris.

Just  a bit of clarification.  rc scripts are still supported for 
compatibility purposes (e.g. ISV software, or administrator-created 
scripts).  But as Jeff said, OpenSolaris software should deliver SMF 
services, not rc scripts.

> You should check out 
> the smf(5) faq <http://opensolaris.org/os/community/smf/faq/> and the 
> Service Management Facility community 
> <http://opensolaris.org/os/community/smf/>. This community should be 
> able to help get you started.

liane

Reply via email to