1 |
On 02/25/2010 01:11 PM, Kaushal Shriyan wrote: |
2 |
> Hi, |
3 |
> |
4 |
> is there a way to start some specific services during boot up in a |
5 |
> sequential order ? |
6 |
> for example |
7 |
> |
8 |
> 1)tomcat |
9 |
> 2)mysql |
10 |
> 3)dns server |
11 |
> |
12 |
> Please suggest. |
13 |
|
14 |
Yes using rc_need_* variable. |
15 |
|
16 |
Example: |
17 |
rc_mysql_need="tomcat" |
18 |
rc_dns_need="mysql" |
19 |
|
20 |
The syntax is: rc_need_[name of the service]="[list of space-separated |
21 |
services you want [name of the service] to depend on]" |
22 |
|
23 |
This is for baselayout-2 and openrc. |
24 |
For baselayout-1, the syntax is quite similar. |
25 |
Check man runscript. |
26 |
|
27 |
> Thanks and Regards, |
28 |
> |
29 |
> Kaushal |
30 |
|
31 |
-- |
32 |
Xavier Parizet |
33 |
YaGB : http://gentooist.com |
34 |
GPG : C7DC B10E FC21 63BE |
35 |
B453 D239 F6E6 DF65 1569 91BF |