Re: What about breaking rc.sysint up into an rc.sysinit.d

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pekka Savola wrote:

>On Wed, 5 Jun 2002, John Summerfield wrote:
>
>>>Some of the pieces I am building and adding to my RedHat installation are
>>>requiring modifications to the /etc/rc.d/rc.sysinit script.
>>>
>>>What would be the response to creating an rc.sysinit.d, breaking the 
>>>rc.sysinit
>>>script into smaller scripts that live in rc.sysinit.d and modifying 
>>>rc.sysinit to
>>>just loop through each of the scripts in numerical order?
>>>
>>I thought that is what /etc/init.d is about.
>>
>
>Sure, but has the startup script numberspace been exhausted yet in init.d?
>
>If not, I don't think rc.sysinit.d would be necessary.
>

I think my initial post was too vague.

This has nothing to do with the init.d and rc[0-6].d other than it would 
be structured in a fashion similar to those pieces.  No files would be 
added to init.d.

What would happen is:

1) rc.sysinit.d would be created.
2) rc.sysinit script would be broken into many small scripts, each with 
a definite purpose.
    ie: the launching setting of networking options would end up being a 
script named rc.sysinit.d/10network.
3) rc.sysinit would then simply source each of those scripts in 
numerical order.

What this would allow is when a third party is building an rpm for 
RedHat, they would not need to have a %pre and %post which patches 
rc.sysinit.

Thanks,
Robin Holt




_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux