UPS shutdown with `sysutils/nut': where should I place "power off" command to UPS?

Lev Serebryakov lev at
Sun Jun 15 15:27:20 UTC 2008

Hello, freebsd-hackers.

  nut's documentation says[1], that UPS should be switched off from
shutdown scripts in point, when FSes are synced and re-mounted as R/O.

  google shows thread[2], according to which, last line of
`/etc/rc.shutdown' is too early, and if power will be switched off at
this line, FSes will be dirty on boot.

  What is proper place for "power off" command on FreeBSD system?

  Please, note, that it is NOT `shutdown -p', but signal to UPS to
switch off EXTERNAL power when battarey is almost dead, and no
external power, and `shutdown -p' turns off only computer, not UPS.


// Black Lion AKA Lev Serebryakov <lev at>

More information about the freebsd-hackers mailing list