Quick overview of installing Network UPS Tools on macOS.
- Config files are located in their normal Linux-style locations, with the brew --prefixprepended. So e.g., on Apple silicon,nut.confis 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 nutConfigure relevant files, e.g. nut.conf and upsmon.conf for a follower host.
sudo brew services start nutSimulate power outage. upsmon should initiate shutdown.