> On Monday 22 May 2006 23:36, Scott Tuc Ellentuch at T-B-O-H wrote: > > I was wondering as a fellow FreeBSD user, where > > did you do the "upsdrvctl shutdown" command? > > > > For the others, there was mention of "rc.early", > > but it seems that it is not run during shutdown. > > There is /etc/rc.shutdown. > In another convo I talked about /etc/rc.shutdown being too early in the process. I corrupt filesystems that cause the system not to boot, which of course is a bad thing. > > What I have is a script in /usr/local/etc/rc.d called nut.sh. It starts and > stops the NUT daemons. If it has been asked to stop it, it checks if the > killpower flag is present and if so, it runs upsdrvctl with the option to > shutdown the UPS. > I'm using the ports... And there is the nut.sh, which I use. The problem is that you are also supposed to put in the "upsdrvctl shutdown" at some point where the filesystems are mounted read only so you don't get file corruption. > > Make sure you have a shutdown gracedelay though - FreeBSD doesn't run any > scripts after the disks are unmounted so you must start the UPS shutdown > phase before the disks are unmounted, hence the need for a grace delay. > Where is this set then, no one else has mentioned it.
Thanks, Tuc _______________________________________________ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser