{"id":2707,"date":"2022-12-20T15:17:05","date_gmt":"2022-12-20T18:17:05","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/ifplugd-man8\/"},"modified":"2022-12-20T15:17:05","modified_gmt":"2022-12-20T18:17:05","slug":"ifplugd-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/ifplugd-man8\/","title":{"rendered":"ifplugd (man8)"},"content":{"rendered":"<h1 align=\"center\">ifplugd<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#ENVIRONMENT\">ENVIRONMENT<\/a><br \/> <a href=\"#SIGNALS\">SIGNALS<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#COMMENTS\">COMMENTS<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">ifplugd \u2212 A link detection daemon for ethernet devices<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ifplugd [<\/b><i>options<\/i><b>]<\/b><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">ifplugd 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.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">It uses your distribution\u2019s 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 (<b>-d<\/b> option) or plugged whiles (<b>-u<\/b> option).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">ifplugd may be used in &#8220;compatibility mode&#8221; by specifying -F on the command line. Than ifplugd will treat network drivers which do not support link beat querying as always online.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>-a | &#8211;no-auto<\/b><\/p>\n<p style=\"margin-left:22%;\">Do not enable interface automatically (default: off)<\/p>\n<p style=\"margin-left:11%;\"><b>-n | &#8211;no-daemon<\/b><\/p>\n<p style=\"margin-left:22%;\">Do not daemonize (for debugging) (default: off)<\/p>\n<p style=\"margin-left:11%;\"><b>-s | &#8211;no-syslog<\/b><\/p>\n<p style=\"margin-left:22%;\">Do not use syslog, use stdout instead (for debugging) (default: off).<\/p>\n<p style=\"margin-left:11%;\"><b>-b | &#8211;no-beep<\/b><\/p>\n<p style=\"margin-left:22%;\">Do not beep (off)<\/p>\n<p style=\"margin-left:11%;\"><b>-f | &#8211;ignore-fail<\/b><\/p>\n<p style=\"margin-left:22%;\">Ignore detection failure, retry instead. Failure is treated as &#8220;no link&#8221;. (default: off)<\/p>\n<p style=\"margin-left:11%;\"><b>-F | &#8211;ignore-fail-positive<\/b><\/p>\n<p style=\"margin-left:22%;\">Ignore detection failure, retry instead. Failure is treated as &#8220;link detected&#8221;. (default: off)<\/p>\n<p style=\"margin-left:11%;\"><b>-i | &#8211;iface=<\/b> <i>IFACE<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify ethernet interface (default: eth0)<\/p>\n<p style=\"margin-left:11%;\"><b>-r | &#8211;run=<\/b> <i>EXEC<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify program to execute when link status changes (default: <i>\/etc\/ifplugd\/ifplugd.action<\/i>)<\/p>\n<p style=\"margin-left:11%;\"><b>-I | &#8211;ignore-retval<\/b><\/p>\n<p style=\"margin-left:22%;\">Don\u2019t exit on nonzero return value of program executed on link change. (default: off)<\/p>\n<p style=\"margin-left:11%;\"><b>-t | &#8211;poll-time=<\/b> <i>SECS<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify poll time in seconds (default: 1)<\/p>\n<p style=\"margin-left:11%;\"><b>-u | &#8211;delay-up=<\/b> <i>SECS<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify delay for configuring interface (default: 0)<\/p>\n<p style=\"margin-left:11%;\"><b>-d | &#8211;delay-down=<\/b> <i>SECS<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify delay for deconfiguring interface (default: 5)<\/p>\n<p style=\"margin-left:11%;\"><b>-m | &#8211;api-mode=<\/b> <i>MODE<\/i><\/p>\n<p style=\"margin-left:22%;\">Force a specific link beat detection ioctl() API. Possible values are auto, iff, wlan, ethtool, mii, and priv for automatic detection, interface flag (IFF_RUNNING), wireless extension, SIOCETHTOOL, SIOCGMIIREG resp. SIOCPRIV. Only the first character of the argument is relevant, case insensitive. (default: auto)<\/p>\n<p style=\"margin-left:11%;\"><b>-p | &#8211;no-startup<\/b><\/p>\n<p style=\"margin-left:22%;\">Don\u2019t call the script to bring up network on deamon start (default: off)<\/p>\n<p style=\"margin-left:11%;\"><b>-q | &#8211;no-shutdown<\/b><\/p>\n<p style=\"margin-left:22%;\">Don\u2019t call the script for network shutdown on deamon quit (default: off)<\/p>\n<p style=\"margin-left:11%;\"><b>-w | &#8211;wait-on-fork<\/b><\/p>\n<p style=\"margin-left:22%;\">When 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.<\/p>\n<p style=\"margin-left:11%;\"><b>-W | &#8211;wait-on-kill<\/b><\/p>\n<p style=\"margin-left:22%;\">When killing a running daemon (with -k) wait until the daemon died.<\/p>\n<p style=\"margin-left:11%;\"><b>-x | &#8211;extra-arg=<\/b> <i>ARG<\/i><\/p>\n<p style=\"margin-left:22%;\">Specify an extra argument to be passed to the action script.<\/p>\n<p style=\"margin-left:11%;\"><b>-M | &#8211;monitor<\/b><\/p>\n<p style=\"margin-left:22%;\">Don\u2019t fail when the network interface is not available, instead use NETLINK to monitor device avaibility. The is useful for PCMCIA devices and similar.<\/p>\n<p style=\"margin-left:11%;\"><b>-h | &#8211;help<\/b><\/p>\n<p style=\"margin-left:22%;\">Show help<\/p>\n<p style=\"margin-left:11%;\"><b>-k | &#8211;kill<\/b><\/p>\n<p style=\"margin-left:22%;\">Kill a running daemon (Specify -i to select the daemon instance to kill)<\/p>\n<p style=\"margin-left:11%;\"><b>-c | &#8211;check-running<\/b><\/p>\n<p style=\"margin-left:22%;\">Check 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.<\/p>\n<p style=\"margin-left:11%;\"><b>-v | &#8211;version<\/b><\/p>\n<p style=\"margin-left:22%;\">Show version<\/p>\n<p style=\"margin-left:11%;\"><b>-S | &#8211;supend<\/b><\/p>\n<p style=\"margin-left:22%;\">Suspend 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.)<\/p>\n<p style=\"margin-left:11%;\"><b>-R | &#8211;resume<\/b><\/p>\n<p style=\"margin-left:22%;\">Resume a suspended daemon. (Specify -i to select the daemon instance to resume.)<\/p>\n<p style=\"margin-left:11%;\"><b>-z | &#8211;info<\/b><\/p>\n<p style=\"margin-left:22%;\">Request that a running daemon shall write its status information to syslog. (Specify -i to select the daemon instance to send the request to.)<\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>\/etc\/ifplugd\/ifplugd.conf<\/i>: this file is sourced by the init script <i>\/etc\/init.d\/ifplugd<\/i> and contains the interface to be monitored and the options to be used.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>\/etc\/ifplugd\/ifplugd.action<\/i>: 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 &#8220;up&#8221; or &#8220;down&#8221;.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>\/var\/run\/ifplugd.<iface>.pid<\/i>: the pid file for ifplugd.<\/p>\n<h2>ENVIRONMENT <a name=\"ENVIRONMENT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The action script will be called with two environment variables set:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>IFPLUGD_PREVIOUS<\/i> The previous link status. Either &#8220;up&#8221;, &#8220;down&#8221;, &#8220;error&#8221; or &#8220;disabled&#8221;. The former values should be obvious, the latter is set on daemon startup.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>IFPLUGD_CURRENT<\/i> The current link status. See above for possible values.<\/p>\n<h2>SIGNALS <a name=\"SIGNALS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>SIGINT, SIGTERM<\/i> ifplugd will quit, possibly running the shutdown script. This is issued by passing -k to ifplugd.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>SIGQUIT<\/i> ifplugd will quit, the shutdown script is never run.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>SIGHUP<\/i> ifplugd will write its status information to syslog. This is issued by -z.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>SIGUSR1<\/i> ifplugd will go to suspend mode. (-S)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>SIGUSR2<\/i> ifplugd will resume from suspend mode. (-R)<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">ifplugd was written by Lennart Poettering <mzvscyhtq (at) 0pointer (dot) de>. ifplugd is available at <b>http:\/\/0pointer.de\/lennart\/projects\/ifplugd\/<\/b><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ifplugd.conf(5)<\/b>, <b>ifup(8)<\/b>, <b>interfaces(5)<\/b>, <b>ifconfig(8)<\/b>, <b>ifplugstatus(8)<\/b><\/p>\n<h2>COMMENTS <a name=\"COMMENTS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This man page was written using <b>xmltoman(1)<\/b> by Oliver Kurth.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  ifplugd \u2212 A link detection daemon for ethernet devices <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,61,4],"class_list":["post-2707","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-ifplugd","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/2707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=2707"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/2707\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=2707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=2707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=2707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}