Date: Tue, 19 Feb 2002 16:29:26 +1100 From: "Paul Bone" <paul@q-exports.com.au> To: <freebsd-questions@freebsd.org> Subject: Shut down sequence. Message-ID: <006601c1b906$65368a20$fe01000a@qex>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. ------=_NextPart_000_0063_01C1B962.989F6100 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I am using nut to monitor my ups. However I require that when freebsd = shuts down it signals the ups to cut the power. This can be done by = adding a command to the shutdown script. I have found /etc/rc.shutdown, however when this file runs all = filesystems are mounted read write. I can only put the command in where = filesystems are mounted read only and the system is ready to power off. In what script should I place this command? Thanks Paul Bone ------=_NextPart_000_0063_01C1B962.989F6100 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>I am using nut to monitor my ups. = However I=20 require that when freebsd shuts down it signals the ups to cut the = power. =20 This can be done by adding a command to the shutdown = script.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>I have found /etc/rc.shutdown, however = when this=20 file runs all filesystems are mounted read write. I can only put = the=20 command in where filesystems are mounted read only and the system is = ready to=20 power off.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>In what script should I place this=20 command?</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Paul Bone</FONT></DIV></BODY></HTML> ------=_NextPart_000_0063_01C1B962.989F6100-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?006601c1b906$65368a20$fe01000a>