Date: Sat, 5 Jan 2002 17:18:33 -0800 (PST) From: Ken Bolingbroke <hacker@bolingbroke.com> To: Ken McGlothlen <mcglk@artlogix.com> Cc: questions@FreeBSD.ORG Subject: Re: Adding a message to shutdown. Message-ID: <20020105171522.C66447-100000@fremont.bolingbroke.com> In-Reply-To: <87ell48gx6.fsf@ralf.artlogix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 5 Jan 2002, Ken McGlothlen wrote: > 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? I think the best approach would be to stick a *.sh script in /usr/local/etc that runs the following for the "stop" argument: /usr/bin/uptime | /usr/bin/logger Ken Bolingbroke hacker@bolingbroke.com 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?20020105171522.C66447-100000>