Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jun 2008 19:08:10 +0400
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        freebsd-hackers@freebsd.org
Cc:        mtm@freebsd.org
Subject:   UPS shutdown with `sysutils/nut': where should I place "power off" command to UPS?
Message-ID:  <1283529703.20080615190810@serebryakov.spb.ru>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1283529703.20080615190810>