sysutils/apcupsd: Several improvements Add support for running multiple instances of apcupsd Add an option to use `shutdown -p` rather than `shutdown -h` Set as @sample several scripts that can be customized Add an option for build with MODBUS USB driver support (Enabled by default) Set LICENSE_FILE  Sort OPTIONS and make a small adjustment in pkg-message Take maintainer'ship PR: 180336  PR: 187924  PR: 215809  PR: 220002  Submitted by: firstname.lastname@example.org  Submitted by: tdb  Submitted by: email@example.com  Submitted by: firstname.lastname@example.org  Approved by: garga (mentor) Differential Revision: https://reviews.freebsd.org/D11224
$ portlint -C WARN: Makefile: SHUTDOWN_POWEROFF is listed in OPTIONS_DEFINE, but no PORT_OPTIONS:MSHUTDOWN_POWEROFF appears. WARN: Makefile: possible use of absolute pathname "/sbin/shutdown". WARN: /usr/home/dbaio/ports/sysutils/apcupsd/distinfo: : TIMESTAMP is over 30 days old 0 fatal errors and 3 warnings found.
I left this option disabled because it will change the comportment in power outages for many users that are using the shutdown -h behavior.
For instance, with IBM servers, If a power failure occurs while the server is turned on, the server will restart automatically when power is restored. And with some systems in the halt state, that is what will happen.
From APC: Computer will not automatically reboot after UPS has shutdown and restarted
ALWAYS ON: When power is cycled on, the computer will automatically turn on and boot up. ALWAYS OFF: When power is cycled on, the computer will stay off until the user manually hits the On/Off soft switch. LAST STATE: When power is cycled on, the computer will either come on or stay off depending on whether it was On or Off when the power was lost.
Changing this for shutdown -p now worries me because of this, and IMHO, it seems to be a POLA violation.
Makes any sense?
I'm open for discussion.