Create a script in /etc/apcupsd/ that runs when power restores ( onbattery → offbattery ). Example:
[Unit] Description=Configure Wake-on-LAN [Service] Type=oneshot ExecStart=/usr/sbin/ethtool -s eth0 wol g [Install] WantedBy=basic.target
: Once utility power returns and the UPS battery reaches a safe threshold, the UPS resumes outputting power. The server detects this new AC flow and automatically boots without needing a magic packet. Schneider Electric Community Implementing Wake-on-LAN (WOL) with APC
Create a script in /etc/apcupsd/ that runs when power restores ( onbattery → offbattery ). Example:
[Unit] Description=Configure Wake-on-LAN [Service] Type=oneshot ExecStart=/usr/sbin/ethtool -s eth0 wol g [Install] WantedBy=basic.target
: Once utility power returns and the UPS battery reaches a safe threshold, the UPS resumes outputting power. The server detects this new AC flow and automatically boots without needing a magic packet. Schneider Electric Community Implementing Wake-on-LAN (WOL) with APC