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

Lev Serebryakov lev at FreeBSD.org
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.


[1] http://www.networkupstools.org/doc/2.2.0/shutdown.html
[2] http://lists.freebsd.org/pipermail/freebsd-questions/2006-May/122764.htm

-- 
// Black Lion AKA Lev Serebryakov <lev at FreeBSD.org>



More information about the freebsd-hackers mailing list