ifplugd(8)
π ifplugd β the link detection daemon bestie π
okay so this page is ifplugd(8), and it lives in the System Manager's Manual section of the manual pages. no cap, it's a whole vibe. let's get into it π«Ά
β¨ NAME β¨
ifplugd β a link detection daemon for ethernet devices π¦
β¨ SYNOPSIS β¨
ifplugd [options]
β¨ DESCRIPTION β¨
so basically ifplugd is a daemon that automatically configures your ethernet device when a cable gets plugged in, and automatically unconfigures it when the cable gets pulled. it's giving "i'll handle it, don't worry about it." π
this is especially iconic on laptops with on-board network adapters, because it will only configure the interface when a cable is really truly actually connected. not just because it's there. it's got standards. β¨
it uses your distribution's native ifup/ifdown programs, but bestie, you can configure it to do literally anything you want when the state of the interface changes. it can also ignore short unplugged whiles (-d option) or short plugged whiles (-u option) β so it's not out here overreacting to every little blip. main character emotional regulation fr fr. πΈ
ifplugd may also be used in "compatibility mode" by specifying -F on the command line. in that mode, ifplugd will treat network drivers that don't support link beat querying as always online. no cap, it just assumes the best. π
β¨ OPTIONS β¨
-a,--no-autoβ do not enable the interface automatically (default: off)-n,--no-daemonβ do not daemonize (for debugging) (default: off)-s,--no-syslogβ do not use syslog, use stdout instead (for debugging) (default: off)-b,--no-beepβ do not beep (off), and this one overrides--no-beep-upand--no-beep-down-U,--no-beep-upβ do not beep on interface up (off)-D,--no-beep-downβ do not beep on interface down (off)-f,--ignore-failβ ignore detection failure, retry instead. failure is treated as "no link". (default: off)-F,--ignore-fail-positiveβ ignore detection failure, retry instead. failure is treated as "link detected". (default: off)-i,--iface=IFACE β specify the ethernet interface (default:eth0)-r,--run=EXEC β specify the program to execute when link status changes (default:/etc/ifplugd/ifplugd.action)-I,--ignore-retvalβ don't exit on a nonzero return value from the program executed on link change. (default: off)-t,--poll-time=SECS β specify poll time in seconds (default:1)-T,--poll-utime=USECS β specify poll time in microseconds, added to-t(default:0)-u,--delay-up=SECS β specify delay for configuring the interface (default:0)-d,--delay-down=SECS β specify delay for deconfiguring the interface (default:5)-m,--api-mode=MODE β force a specific link beat detectionioctl()API. possible values areauto,iff,wlan,ethtool,mii, andpriv, for automatic detection, interface flag (IFF_RUNNING), wireless extension,SIOCETHTOOL,SIOCGMIIREGresp.SIOCPRIV. only the first character of the argument is relevant, and it's case insensitive. (default:auto)-p,--no-startupβ don't call the script to bring up the network on daemon start (default: off)-q,--no-shutdownβ don't call the script for network shutdown on daemon quit (default: off)-w,--wait-on-forkβ 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.2means link beat detected,3stands for link beat not detected, and everything else is an error.-W,--wait-on-killβ when killing a running daemon (with-k), wait until the daemon died.-x,--extra-arg=ARG β specify an extra argument to be passed to the action script.-M,--monitorβ don't fail when the network interface is not available, instead useNETLINKto monitor device availability. this is useful for PCMCIA devices and similar. π-h,--helpβ show help-k,--killβ kill a running daemon (specify-ito select the daemon instance to kill)-c,--check-runningβ check if a daemon is running for a given network interface. sets the return value to0if a daemon is already running, or to255if not.-v,--versionβ show version-S,--supendβ suspend a running daemon. the daemon will no longer check the link status until it is resumed (-R) again. (specify-ito select the daemon instance to suspend.)-R,--resumeβ resume a suspended daemon. (specify-ito select the daemon instance to resume.)-z,--infoβ request that a running daemon shall write its status information to syslog. (specify-ito select the daemon instance to send the request to.)
and yes bestie, --supend is spelled exactly like that in the original. i am not touching it. i respect it. π
β¨ FILES β¨
/etc/default/ifplugdβ this file is sourced by the init script/etc/init.d/ifplugdand contains the interface to be monitored and the options to be used. π/etc/ifplugd/ifplugd.actionβ this is the script that will be called by the daemon whenever the state of the interface changes. it takes two arguments: the first is the interface name (eg.eth0), and the second is either"up"or"down"./var/run/ifplugd.<iface>.pidβ the pid file forifplugd.
β¨ ENVIRONMENT β¨
the action script will be called with two environment variables set:
IFPLUGD_PREVIOUSβ the previous link status. either"up","down","error"or"disabled". the former values should be obvious, and the latter is set on daemon startup.IFPLUGD_CURRENTβ the current link status. see above for possible values.
β¨ SIGNALS β¨
SIGINT,SIGTERMβifplugdwill quit, possibly running the shutdown script. this is issued by passing-ktoifplugd.SIGQUITβifplugdwill quit, and the shutdown script is never run.SIGHUPβifplugdwill write its status information to syslog. this is issued by-z.SIGUSR1βifplugdwill go to suspend mode. (-S)SIGUSR2βifplugdwill resume from suspend mode. (-R)
β¨ AUTHOR β¨
ifplugd was written by Lennart Poettering <mzvscyhtq (at) 0pointer (dot) de>. ifplugd is available at http://0pointer.de/lennart/projects/ifplugd/ π
β¨ SEE ALSO β¨
ifplugd.conf(5), ifup(8), interfaces(5), ifconfig(8), ifplugstatus(8)
β¨ COMMENTS β¨
this man page was written using xmltoman(1) by Oliver Kurth.
and that's the whole thing, bestie π so the footer of this page says it comes from Manuals, it's a User page, and it's titled ifplugd(8). go plug in a cable and let the daemon do its thing. slay. πβ¨π
π¦ where this page comes from
- debian bookworm: ifplugd 0.28-19.5
- ubuntu jammy: ifplugd 0.28-19.5
- ubuntu noble: ifplugd 0.28-19.7
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms