Hi,

>>The only reason I can see to support rc scripts is to allow for
>>compatibility with older releases of Solaris (or perhaps even with
>>other OSes).


Or to implement a one time task - it's much easier to do this with RC 
scripts than with SMF services. IMHO SMF and RC script have both their 
advantages and disadvantages.

And there is a  message in  the discussion list which does not match:

http://www.opensolaris.org/jive/thread.jspa?threadID=7121&tstart=0

regards

Bernd


James Carlson wrote:
> Mike Gerdts writes:
>   
>> IMHO this behavior is one of those backwards things that Solaris has
>> always done that should be fixed if someone in the community is
>> willing to do it.  Sure - SMF is the way forward but it is overly
>> complicated for a new Solaris user to understand how to add a service.
>>     
>
> If that's true (I don't think I really agree, but let's suppose), then
> why not fix *that* problem instead?  Let's make it trivial to add a
> new service, so that resorting to rc scripts -- and the lack of system
> management support they imply -- just isn't necessary.
>
>   
>> In the past, scripts in /etc/rc*.d did not need to be executable to
>> work.  The suggested workaround is to use the existing behavior IFF
>> the file is not executable.  Otherwise, simply run the program and let
>> the OS determine if it is a bourne shell script, perl script, or ELF
>> executable.  If someone added a shell script without the shebang, I'm
>> pretty sure the interpreter will default to /bin/sh so that should not
>> be a worry.
>>     
>
> The only reason I can see to support rc scripts is to allow for
> compatibility with older releases of Solaris (or perhaps even with
> other OSes).  In that case, you _have to_ live with the constraints
> that those older releases continue to have -- which means that
> "#!/bin/ksh" just isn't going to work.
>
> An rc script should just start the service; it shouldn't be a magnum
> opus.  Frankly, I think that if you're doing anything in an rc script
> that is so complicated that the difference between legacy Bourne shell
> and the newer Korn shells makes any real difference, then you're doing
> something deeply wrong.
>
>   


-- 
Bernd Schemmer, Frankfurt am Main, Germany
http://home.arcor.de/bnsmb/index.html

M s temprano que tarde el mundo cambiar .
                        Fidel Castro


Reply via email to