diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-12-06 15:42:44 +0100 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-12-06 15:42:44 +0100 |
commit | bc3cdf8ed156eadb80bd5f83389ab368df6e5656 (patch) | |
tree | 5b931eb10861140cbf7f04039f90c033e376d8ee | |
parent | 75bb332dbd3105cda90d9d544a16ffdd9be19bbd (diff) | |
download | busybox-w32-bc3cdf8ed156eadb80bd5f83389ab368df6e5656.tar.gz busybox-w32-bc3cdf8ed156eadb80bd5f83389ab368df6e5656.tar.bz2 busybox-w32-bc3cdf8ed156eadb80bd5f83389ab368df6e5656.zip |
update examples/var_service/README
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r-- | examples/var_service/README | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/var_service/README b/examples/var_service/README index 75d2ab8c2..69e1981fd 100644 --- a/examples/var_service/README +++ b/examples/var_service/README | |||
@@ -18,6 +18,8 @@ udhcpc on other interfaces (var_service/dhcp_if/run script uses _foo suffix | |||
18 | or the parent directory as interface name). When IP address is obtained or lost, | 18 | or the parent directory as interface name). When IP address is obtained or lost, |
19 | var_service/dhcp_if/dhcp_handler is run. It saves new config data to | 19 | var_service/dhcp_if/dhcp_handler is run. It saves new config data to |
20 | /var/run/service/fw/dhcp_if.ipconf and (re)starts /var/service/fw service. | 20 | /var/run/service/fw/dhcp_if.ipconf and (re)starts /var/service/fw service. |
21 | This example can be used as a template for other dynamic network link services | ||
22 | (ppp/vpn/zcip). | ||
21 | 23 | ||
22 | var_service/ifplugd_if - | 24 | var_service/ifplugd_if - |
23 | watches link status of interface if. Downs and ups /var/service/dhcp_if | 25 | watches link status of interface if. Downs and ups /var/service/dhcp_if |
@@ -35,6 +37,9 @@ An *one-shot* service which reconfigures network based on current known state | |||
35 | of ALL interfaces. Uses conf/*.ipconf (static config) and /var/run/service/fw/*.ipconf | 37 | of ALL interfaces. Uses conf/*.ipconf (static config) and /var/run/service/fw/*.ipconf |
36 | (dynamic config from dhcp/ppp/vpn/etc) to determine what to do. | 38 | (dynamic config from dhcp/ppp/vpn/etc) to determine what to do. |
37 | One-shot-ness of this service means that it shuts itself off after single run. | 39 | One-shot-ness of this service means that it shuts itself off after single run. |
40 | IOW: it is not a constantly running daemon sort of thing. | ||
41 | It starts, it configures the network, it shuts down, all done | ||
42 | (unlike infamous NetworkManagers which sit in RAM forever, doing hell knows what). | ||
38 | 43 | ||
39 | However, any dhcp/ppp/vpn or similar service can restart it anytime | 44 | However, any dhcp/ppp/vpn or similar service can restart it anytime |
40 | when it senses the change in network configuration. | 45 | when it senses the change in network configuration. |