Date: Sat, 5 Jan 2002 21:13:17 -0500 From: "Ron Hensley" <ronh@intercom.net> To: <questions@FreeBSD.ORG>, "Ken McGlothlen" <mcglk@artlogix.com> Subject: Re: Adding a message to shutdown. Message-ID: <006201c19657$ba14a1c0$0273150a@woodstock.lanalyse.com> References: <87ell48gx6.fsf@ralf.artlogix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Have a look at /etc/rc.shutdown, which is run when the system shuts down, or when you go from multi to single user mode In particular at the end of it is # Insert other shutdown procedures here echo '.' exit 0 Add any command you want run, right there after the comment. - ----- Original Message ----- From: "Ken McGlothlen" <mcglk@artlogix.com> To: <questions@FreeBSD.ORG> Sent: Saturday, January 05, 2002 7:24 PM Subject: Adding a message to shutdown. > I know this must seem an incredibly minor point, but I'd like to write the > uptime to /var/log/messages before the system shuts down whenever I do > "shutdown" or "reboot" or the like. > > What would be the best way to go about that? I know I could hack it into > rc.shutdown or something, but is there a gentler way? > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com> iQA/AwUBPDeyvFFb04N5DzUjEQI0PQCgpaE1U4YNrhp1r596Fu0JygOGoZgAoMoL d3Zng3u4ohGVvUtQAxmdcLIw =IRCK -----END PGP SIGNATURE----- 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?006201c19657$ba14a1c0$0273150a>