Quick overview of installing Network UPS Tools on macOS.
- Config files are located in their normal Linux-style locations, with the
brew --prefix
prepended. So e.g., on Apple silicon,nut.conf
is located at/opt/homebrew/etc/nut/nut.conf
. - NUT's Homebrew service should be run as root, to support default shutdown command.
- While desktop macOS supports "wake after power loss", it doesn't seem to support "wake on power". It treats the graceful shutdown as a normal shutdown, which doesn't result in startup after power restore. Can either accept manual power-on required, or remove graceful shutdown.
brew install nut
Configure relevant files, e.g. nut.conf
and upsmon.conf
for a follower host.
sudo brew services start nut
Simulate power outage. upsmon
should initiate shutdown.