source: trunk/third/ifplugd/man/ifplugd.8 @ 20388

Revision 20388, 5.4 KB checked in by amb, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20387, which included commits to RCS files with non-trunk default branches.
Line 
1.TH ifplugd 8 User Manuals
2.SH NAME
3ifplugd \- A link detection daemon for ethernet devices
4.SH SYNOPSIS
5\fBifplugd [\fIoptions\fB]
6\f1
7.SH DESCRIPTION
8ifplugd is a daemon which will automatically configure your ethernet device when a cable is plugged in and automatically unconfigure it if the cable is pulled. This is useful on laptops with on-board network adapters, since it will only configure the interface when a cable is really connected.
9
10It uses your distribution's native ifup/ifdown programs, but can be configured to do anything you wish when the state of the interface changes. It may ignore short unplugged whiles (\fB-d\f1 option) or plugged whiles (\fB-u\f1 option).
11
12ifplugd may be used in "compatibility mode" by specifying -F on the command line. Than ifplugd will treat network drivers which do not support link beat querying as always online.
13.SH OPTIONS
14.TP
15\fB-a | --no-auto\f1
16Do not enable interface automatically (default: off)
17.TP
18\fB-n | --no-daemon\f1
19Do not daemonize (for debugging) (default: off)
20.TP
21\fB-s | --no-syslog\f1
22Do not use syslog, use stdout instead (for debugging) (default: off).
23.TP
24\fB-b | --no-beep\f1
25Do not beep (off)
26.TP
27\fB-f | --ignore-fail\f1
28Ignore detection failure, retry instead. Failure is treated as "no link". (default: off)
29.TP
30\fB-F | --ignore-fail-positive\f1
31Ignore detection failure, retry instead. Failure is treated as "link detected". (default: off)
32.TP
33\fB-i | --iface=\f1 \fIIFACE\f1
34Specify ethernet interface (default: eth0)
35.TP
36\fB-r | --run=\f1 \fIEXEC\f1
37Specify program to execute when link status changes (default: \fI/etc/ifplugd/ifplugd.action\f1)
38.TP
39\fB-I | --ignore-retval\f1
40Don't exit on nonzero return value of program executed on link change. (default: off)
41.TP
42\fB-t | --poll-time=\f1 \fISECS\f1
43Specify poll time in seconds (default: 1)
44.TP
45\fB-u | --delay-up=\f1 \fISECS\f1
46Specify delay for configuring interface (default: 0)
47.TP
48\fB-d | --delay-down=\f1 \fISECS\f1
49Specify delay for deconfiguring interface (default: 5)
50.TP
51\fB-m | --api-mode=\f1 \fIMODE\f1
52Force a specific link beat detection ioctl() API. Possible values are auto, wlan, ethtool, mii, and priv for automatic detection, wireless extension, SIOCETHTOOL, SIOCGMIIREG resp. SIOCPRIV. Only the first character of the argument is relevant, case insensitive. (default: auto)
53.TP
54\fB-q | --no-shutdown\f1
55Don't call the script for network shutdown on deamon quit (default: off)
56.TP
57\fB-w | --wait-on-fork\f1
58When daemonizing, wait until the background process finished with the initial link beat detection. When this is enabled, the parent process will return the link status on exit. 1 means link beat detected, 2 stands for link beat not detected, everything else is an error.
59.TP
60\fB-W | --wait-on-kill\f1
61When killing a running daemon (with -k) wait until the daemon died.
62.TP
63\fB-x | --extra-arg=\f1 \fIARG\f1
64Specify an extra argument to be passed to the action script.
65.TP
66\fB-M | --monitor\f1
67Don't fail when the network interface is not available, instead use NETLINK to monitor device avaibility. The is useful for PCMCIA devices and similar.
68.TP
69\fB-h | --help\f1
70Show help
71.TP
72\fB-k | --kill\f1
73Kill a running daemon (Specify -i to select the daemon instance to kill)
74.TP
75\fB-c | --check-running\f1
76Check if a daemon is running for a given network interface. Sets the return value to 0 if a daemon is already running or to 255 if not.
77.TP
78\fB-v | --version\f1
79Show version
80.TP
81\fB-S | --supend\f1
82Suspend a running daemon. The daemon will no longer check the link status until it is resumed (-R) again. (Specify -i to select the daemon instance to suspend.)
83.TP
84\fB-R | --resume\f1
85Resume a suspended daemon. (Specify -i to select the daemon instance to resume.)
86.TP
87\fB-z | --info\f1
88Request that a running daemon shall write its status information to syslog. (Specify -i to select the daemon instance to send the request to.)
89.SH FILES
90\fI/etc/ifplugd/ifplugd.conf\f1: this file is sourced by the init script \fI/etc/init.d/ifplugd\f1 and contains the interface to be monitored and the options to be used.
91
92\fI/etc/ifplugd/ifplugd.action\f1: this is the script which will be called by the daemon whenever the state of the interface changes. It takes two areguments: the first is the interface name (eg. eth0), the second either "up" or "down".
93
94\fI/var/run/ifplugd.<iface>.pid\f1: the pid file for ifplugd.
95.SH ENVIRONMENT
96The action script will be called with two environment variables set:
97
98\fIIFPLUGD_PREVIOUS\f1 The previous link status. Either "up", "down", "error" or "disabled". The former values should be obvious, the latter is set on daemon startup.
99
100\fIIFPLUGD_CURRENT\f1 The current link status. See above for possible values.
101.SH SIGNALS
102\fISIGINT, SIGTERM\f1 ifplugd will quit, possibly running the shutdown script. This is issued by passing -k to ifplugd.
103
104\fISIGQUIT\f1 ifplugd will quit, the shutdown script is never run.
105
106\fISIGHUP\f1 ifplugd will write its status information to syslog. This is issued by -z.
107
108\fISIGUSR1\f1 ifplugd will go to suspend mode. (-S)
109
110\fISIGUSR2\f1 ifplugd will resume from suspend mode. (-R)
111.SH AUTHOR
112ifplugd was written by Lennart Poettering <mzvscyhtq (at) 0pointer (dot) de>. ifplugd is available at \fBhttp://0pointer.de/lennart/projects/ifplugd/\f1
113.SH SEE ALSO
114\fBifplugd.conf(5)\f1, \fBifup(8)\f1, \fBinterfaces(5)\f1, \fBifconfig(8)\f1, \fBifplugstatus(8)\f1
115.SH COMMENTS
116This man page was written using \fBxmltoman(1)\f1 by Oliver Kurth.
Note: See TracBrowser for help on using the repository browser.