aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2019-01-18 14:14:07 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2019-01-18 14:17:02 +0100
commitf7235cc89f21268162ede9e010dc2b7b20b53377 (patch)
tree6a8e843afc95ec115bfe6ba9b047c8a3c2389dca /examples
parent774879c4e11bca1d4625c9ef1bc51e74cc3d24d0 (diff)
downloadbusybox-f7235cc89f21268162ede9e010dc2b7b20b53377.tar.gz
service examples: ifplugd -M to prevents frequent respawning
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/var_service/ifplugd_if/run3
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 \
env - PATH="$PATH" \
softlimit \
setuidgid root \
-ifplugd -aqlns -t3 -u8 -d8 -i "$if" -r "$pwd/ifplugd_handler"
+ifplugd -aqlMns -t3 -u8 -d8 -i "$if" -r "$pwd/ifplugd_handler"
# We use -t3 to wake ifplugd up less often.
# 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"
# from pointlessly trying to get a lease.
# -q means that stopping monitoring does not stop dhcp/zcip/etc:
# presumably, admin decided to control them manually.
+# -M prevents frequent respawning if device does not exist (yet?)
#-a Don't up interface automatically
#-p Don't run "up" script on startup