summaryrefslogtreecommitdiff
path: root/examples/var_service
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-11-07 17:54:44 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-11-07 17:54:44 +0100
commitbf40f564ae8cada5e9d7fce148aad138842984f6 (patch)
treeedafd161d99bdb73754f1004ef0c13639f86b2e4 /examples/var_service
parent5a34d021cb07a13cfd7dbade66e33cba2aa295d4 (diff)
downloadbusybox-w32-bf40f564ae8cada5e9d7fce148aad138842984f6.tar.gz
busybox-w32-bf40f564ae8cada5e9d7fce148aad138842984f6.tar.bz2
busybox-w32-bf40f564ae8cada5e9d7fce148aad138842984f6.zip
tweak examples
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'examples/var_service')
-rwxr-xr-xexamples/var_service/ifplugd_if/run20
1 files changed, 11 insertions, 9 deletions
diff --git a/examples/var_service/ifplugd_if/run b/examples/var_service/ifplugd_if/run
index 44ddbc48d..360b75a3f 100755
--- a/examples/var_service/ifplugd_if/run
+++ b/examples/var_service/ifplugd_if/run
@@ -7,26 +7,28 @@ pwd="$PWD"
7 7
8if="${PWD##*/ifplugd_}" 8if="${PWD##*/ifplugd_}"
9 9
10echo "* Starting ifplugd [$$]" 10echo "* Starting ifplugd on $if [$$]"
11exec \ 11exec \
12env - PATH="$PATH" \ 12env - PATH="$PATH" \
13softlimit \ 13softlimit \
14setuidgid root \ 14setuidgid root \
15ifplugd -apq -n -s -i "$if" -r "$pwd/ifplugd_handler" 15ifplugd -apqns -t3 -u9 -d9 -i "$if" -r "$pwd/ifplugd_handler"
16 16
17# we use -t3 to wake ifplugd up less often
18
19#-a Do not up interface automatically
20#-p Dont run script on daemon startup
21#-q Dont run script on daemon quit
17#-n Do not daemonize 22#-n Do not daemonize
18#-s Do not log to syslog 23#-s Do not log to syslog
24#-t SECS Poll time in seconds
25#-u SECS Delay before running script after link up
26#-d SECS Delay after link down
19#-i IFACE Interface 27#-i IFACE Interface
28#-r PROG Script to run
20#-f/-F Treat link detection error as link down/link up (otherwise exit on error) 29#-f/-F Treat link detection error as link down/link up (otherwise exit on error)
21#-a Do not up interface automatically
22#-M Monitor creation/destruction of interface (otherwise it must exist) 30#-M Monitor creation/destruction of interface (otherwise it must exist)
23#-r PROG Script to run
24#-x ARG Extra argument for script 31#-x ARG Extra argument for script
25#-I Dont exit on nonzero exit code from script 32#-I Dont exit on nonzero exit code from script
26#-p Dont run script on daemon startup
27#-q Dont run script on daemon quit
28#-l Run script on startup even if no cable is detected 33#-l Run script on startup even if no cable is detected
29#-t SECS Poll time in seconds
30#-u SECS Delay before running script after link up
31#-d SECS Delay after link down
32#-m MODE API mode (mii, priv, ethtool, wlan, auto) 34#-m MODE API mode (mii, priv, ethtool, wlan, auto)