diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-01-18 14:14:07 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-01-18 14:17:02 +0100 |
commit | f7235cc89f21268162ede9e010dc2b7b20b53377 (patch) | |
tree | 6a8e843afc95ec115bfe6ba9b047c8a3c2389dca | |
parent | 774879c4e11bca1d4625c9ef1bc51e74cc3d24d0 (diff) | |
download | busybox-w32-f7235cc89f21268162ede9e010dc2b7b20b53377.tar.gz busybox-w32-f7235cc89f21268162ede9e010dc2b7b20b53377.tar.bz2 busybox-w32-f7235cc89f21268162ede9e010dc2b7b20b53377.zip |
service examples: ifplugd -M to prevents frequent respawning
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-x | examples/var_service/ifplugd_if/run | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/var_service/ifplugd_if/run b/examples/var_service/ifplugd_if/run index 5d1d4e355..5c662f298 100755 --- a/examples/var_service/ifplugd_if/run +++ b/examples/var_service/ifplugd_if/run | |||
@@ -16,7 +16,7 @@ exec \ | |||
16 | env - PATH="$PATH" \ | 16 | env - PATH="$PATH" \ |
17 | softlimit \ | 17 | softlimit \ |
18 | setuidgid root \ | 18 | setuidgid root \ |
19 | ifplugd -aqlns -t3 -u8 -d8 -i "$if" -r "$pwd/ifplugd_handler" | 19 | ifplugd -aqlMns -t3 -u8 -d8 -i "$if" -r "$pwd/ifplugd_handler" |
20 | 20 | ||
21 | # We use -t3 to wake ifplugd up less often. | 21 | # We use -t3 to wake ifplugd up less often. |
22 | # If after three tests (3*3=9 > 8) link state seen to be different, | 22 | # If after three tests (3*3=9 > 8) link state seen to be different, |
@@ -29,6 +29,7 @@ ifplugd -aqlns -t3 -u8 -d8 -i "$if" -r "$pwd/ifplugd_handler" | |||
29 | # from pointlessly trying to get a lease. | 29 | # from pointlessly trying to get a lease. |
30 | # -q means that stopping monitoring does not stop dhcp/zcip/etc: | 30 | # -q means that stopping monitoring does not stop dhcp/zcip/etc: |
31 | # presumably, admin decided to control them manually. | 31 | # presumably, admin decided to control them manually. |
32 | # -M prevents frequent respawning if device does not exist (yet?) | ||
32 | 33 | ||
33 | #-a Don't up interface automatically | 34 | #-a Don't up interface automatically |
34 | #-p Don't run "up" script on startup | 35 | #-p Don't run "up" script on startup |