diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-27 12:53:20 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-27 12:53:20 +0200 |
commit | 2e01eec4d3bf52bb3f8332bd74a877a317238f92 (patch) | |
tree | aefea7734e502d208e6080c75ea18539675a074d | |
parent | 6bdcee835710e9a7dda6e31a8d5bc3992037db28 (diff) | |
download | busybox-w32-2e01eec4d3bf52bb3f8332bd74a877a317238f92.tar.gz busybox-w32-2e01eec4d3bf52bb3f8332bd74a877a317238f92.tar.bz2 busybox-w32-2e01eec4d3bf52bb3f8332bd74a877a317238f92.zip |
tweak examples/var_service/*
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | examples/var_service/README | 14 | ||||
-rw-r--r-- | examples/var_service/README_distro_proposal.txt | 2 |
2 files changed, 9 insertions, 7 deletions
diff --git a/examples/var_service/README b/examples/var_service/README index 938cce91d..15a1bc9d2 100644 --- a/examples/var_service/README +++ b/examples/var_service/README | |||
@@ -98,7 +98,7 @@ restart) each other. | |||
98 | 98 | ||
99 | var_service/dhcp_if | 99 | var_service/dhcp_if |
100 | 100 | ||
101 | controls a udhcpc instance which provides dhpc-assigned IP | 101 | controls a udhcpc instance which provides DHCP-assigned IP |
102 | address on interface named "if". Copy/rename this directory as needed to run | 102 | address on interface named "if". Copy/rename this directory as needed to run |
103 | udhcpc on other interfaces (var_service/dhcp_if/run script uses _foo suffix | 103 | udhcpc on other interfaces (var_service/dhcp_if/run script uses _foo suffix |
104 | of the parent directory as interface name). | 104 | of the parent directory as interface name). |
@@ -164,9 +164,9 @@ This is achieved very simply by having | |||
164 | sv o . | 164 | sv o . |
165 | at the very beginning of fw/run script, not at the end. | 165 | at the very beginning of fw/run script, not at the end. |
166 | 166 | ||
167 | Therefore, any "sv u /var/run/service/fw" command by any other | 167 | Therefore, any "sv u fw" command by any other script "undoes" o(ne-shot) |
168 | script "undoes" o(ne-shot) command if fw still runs, thus | 168 | command if fw still runs, thus runsv will rerun it; or start it |
169 | runsv will rerun it; or start it in a normal way if fw is not running. | 169 | in a normal way if fw is not running. |
170 | 170 | ||
171 | This mechanism is the reason why fw is a service, not just a script. | 171 | This mechanism is the reason why fw is a service, not just a script. |
172 | 172 | ||
@@ -198,7 +198,8 @@ PID TIME COMMAND | |||
198 | 568 0:00 svlogd -tt /var/log/service/dhcp_eth0 | 198 | 568 0:00 svlogd -tt /var/log/service/dhcp_eth0 |
199 | 850 0:00 udhcpc -vv --foreground --interface=eth0 | 199 | 850 0:00 udhcpc -vv --foreground --interface=eth0 |
200 | --pidfile=/var/service/dhcp_eth0/udhcpc.pid | 200 | --pidfile=/var/service/dhcp_eth0/udhcpc.pid |
201 | --script=/var/service/dhcp_eth0/dhcp_handler -x hostname bbox | 201 | --script=/var/service/dhcp_eth0/dhcp_handler |
202 | -x hostname bbox | ||
202 | 563 0:00 runsv ntpd | 203 | 563 0:00 runsv ntpd |
203 | 573 0:01 svlogd -tt /var/log/service/ntpd | 204 | 573 0:01 svlogd -tt /var/log/service/ntpd |
204 | 845 0:00 busybox ntpd -dddnNl -S ./ntp.script -p 10.x.x.x -p 10.x.x.x | 205 | 845 0:00 busybox ntpd -dddnNl -S ./ntp.script -p 10.x.x.x -p 10.x.x.x |
@@ -233,4 +234,5 @@ PID TIME COMMAND | |||
233 | 622 0:00 busybox httpd -p80 -vvv -f -h /home/httpd_root | 234 | 622 0:00 busybox httpd -p80 -vvv -f -h /home/httpd_root |
234 | 577 0:00 runsv supplicant_wlan0 | 235 | 577 0:00 runsv supplicant_wlan0 |
235 | 627 0:00 svlogd -tt /var/log/service/supplicant_wlan0 | 236 | 627 0:00 svlogd -tt /var/log/service/supplicant_wlan0 |
236 | 638 0:03 wpa_supplicant -i wlan0 -c /var/service/supplicant_wlan0/wpa_supplicant.conf -d | 237 | 638 0:03 wpa_supplicant -i wlan0 |
238 | -c /var/service/supplicant_wlan0/wpa_supplicant.conf -d | ||
diff --git a/examples/var_service/README_distro_proposal.txt b/examples/var_service/README_distro_proposal.txt index 9ba952cb4..ec887b4e1 100644 --- a/examples/var_service/README_distro_proposal.txt +++ b/examples/var_service/README_distro_proposal.txt | |||
@@ -90,9 +90,9 @@ There are several reimplementations of daemontools: | |||
90 | (busybox has it included) | 90 | (busybox has it included) |
91 | - s6: by Laurent Bercot, http://skarnet.org/software/s6/ | 91 | - s6: by Laurent Bercot, http://skarnet.org/software/s6/ |
92 | 92 | ||
93 | |||
94 | It is not required that a specific clone should be used. Let evolution work. | 93 | It is not required that a specific clone should be used. Let evolution work. |
95 | 94 | ||
95 | |||
96 | Terminology | 96 | Terminology |
97 | 97 | ||
98 | daemon: any long running background program. Common examples are sshd, getty, | 98 | daemon: any long running background program. Common examples are sshd, getty, |