| 1 |
The most complicated step is compiling the lmainit.so loadable object for |
| 2 |
the bash. I used bash-2.05b this is the minimum version required since |
| 3 |
specific bash-2.05b features are used. Did I tell you that this is for |
| 4 |
linux only (although other unices might work, I expect _some_ porting |
| 5 |
work). |
| 6 |
|
| 7 |
I have a few prebuilt .so files in the package, the 2.04 one should work |
| 8 |
till 2.05a. |
| 9 |
|
| 10 |
I have bundled the necessary headerfiles from my bash-2.05b installation |
| 11 |
into include. For best results you have to copy your own bash header files |
| 12 |
to that location, i.e. |
| 13 |
|
| 14 |
cp ~my/bash-2.04/*.h ~my/bash-2.04/*/*.h shinit/include |
| 15 |
|
| 16 |
After that you can do "make clean all install", which will create |
| 17 |
a /etc/rc.d and copy various files into it. The most important ones are |
| 18 |
|
| 19 |
/etc/rc.d/bcheckrc should be run on sysinit |
| 20 |
/etc/rc.d/brc should be run on boot |
| 21 |
/etc/rc.d/rc should be run on any runlevel change |
| 22 |
|
| 23 |
See the inittab in the distribution for an example. |
| 24 |
|
| 25 |
Also, all programs required for booting (hdparm for example) must be in |
| 26 |
some hardcoded locaiton, either /sbin or /bin. Some distributions disagree |
| 27 |
and put programs required for booting into /usr, which means you cannot |
| 28 |
have a seperate root partition... watch out. |
| 29 |
|
| 30 |
The most important file is rc.values, which gets copied to /etc. It |
| 31 |
contains your whole system configuration. |
| 32 |
|
| 33 |
The program "facility" (in sbin) dan be used to stop/start single services, e.g. |
| 34 |
|
| 35 |
facility -httpd +mysqld +httpd |
| 36 |
|
| 37 |
will stop httpd and start mysqld and httpd. |
| 38 |
|
| 39 |
You can customize all the predefined facilities by editing standard.fac |
| 40 |
and boot.fac. You can add your own facilities by creating a file |
| 41 |
/etc/rc.d/fac/<facility>.fac that should define the facility named |
| 42 |
<facility>. |
| 43 |
|
| 44 |
(needless to say, syntax and logic has suffered a lot from my previous |
| 45 |
perl implementation) |
| 46 |
|