Re: [gentoo-user] auto-email on reboot?
Mark Knecht wrote: it reboots? I don't expect that this should happen often, but I'd like to know when it does. setup ssmtp, install mail-client/mailx, then add this to /etc/conf.d/local.start: date|mail -s 'I just rebooted!' [EMAIL PROTECTED] -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] auto-email on reboot?
Billy Holmes schreef: Mark Knecht wrote: it reboots? I don't expect that this should happen often, but I'd like to know when it does. setup ssmtp, install mail-client/mailx, then add this to /etc/conf.d/local.start: date|mail -s 'I just rebooted!' [EMAIL PROTECTED] And you know, it just occurred to me-- isn't there a kernel option or an option somewhere that I can't remember right now, to enable or disable auto-rebooting on severe errors/kernel panics, something like that? I just realized that I always turn this option (wherever it may be) off (I think it's the kernel, which would explain why I don't remember precisely where it is, since I configure all kernels to be the same as the last, so I set it once and forgot it), and maybe you should too-- that way you might have a better chance of knowing what precisely is causing these spontaneous reboots in the first place, so you could stop them. Does anybody else know what I'm talking about? ;-) ? Holly -- gentoo-user@gentoo.org mailing list
RE: [gentoo-user] auto-email on reboot?
What would be an accepted easy way, meaning not too much software setup, etc., to get the machine to email my GMail account every time it reboots? I don't expect that this should happen often, but I'd like to know when it does. Add a line to /etc/conf.d/local.start to either call a script or just use a line like: mail -s System reboot complete [EMAIL PROTECTED] /etc/conf.d/static.mail.txt And that would do it... -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] auto-email on reboot?
Am Mittwoch, den 21.09.2005, 07:26 -0700 schrieb Mark Knecht: Hi, Yesterday my NFS server, used for MYthTV storage, but also a MythTV frontend, seems to have spontaneously rebooted twice. After that all recordings done for the rest of the day are bad. What would be an accepted easy way, meaning not too much software setup, etc., to get the machine to email my GMail account every time it reboots? I don't expect that this should happen often, but I'd like to know when it does. That's rather simple. Here's what I did: 1.) emerge mailx 2.) emerge mutt 3.) edit /etc/conf.d/local.start echo Mail content | mutt -s Subject -a attachement file [EMAIL PROTECTED] And you're done. Thanks, Mark -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] auto-email on reboot?
On Wed, 21 Sep 2005 16:44:50 +0200, Holly Bostick wrote: I just realized that I always turn this option (wherever it may be) off (I think it's the kernel, which would explain why I don't remember precisely where it is, since I configure all kernels to be the same as the last, so I set it once and forgot it), and maybe you should too-- that way you might have a better chance of knowing what precisely is causing these spontaneous reboots in the first place, so you could stop them. Does anybody else know what I'm talking about? ;-) ? Yes, but like you I can't remember where you set it. You can also pass it as an option to the kernel when booting. I don't really think it will help here, the system log should contain everything Mark needs, providing it's not a hard reboot that prevents the last log messages being flushed to disk. -- Neil Bothwick Someone who thinks logically is a nice contrast to the real world. pgpsMbnkwHeaW.pgp Description: PGP signature
Re: [gentoo-user] auto-email on reboot?
Neil Bothwick wrote: On Wed, 21 Sep 2005 16:44:50 +0200, Holly Bostick wrote: I just realized that I always turn this option (wherever it may be) off (I think it's the kernel, which would explain why I don't remember precisely where it is, since I configure all kernels to be the same as the last, so I set it once and forgot it), and maybe you should too-- that way you might have a better chance of knowing what precisely is causing these spontaneous reboots in the first place, so you could stop them. Does anybody else know what I'm talking about? ;-) ? Yes, but like you I can't remember where you set it. You can also pass it as an option to the kernel when booting. I don't really think it will help here, the system log should contain everything Mark needs, providing it's not a hard reboot that prevents the last log messages being flushed to disk. I think you're talking about the hangcheck timer? -- Jonathan Wright ~ mail at djnauk.co.uk ~ www.djnauk.co.uk -- 2.6.12-gentoo-r6-djnauk-b2 AMD Athlon(tm) XP 2100+ up 3 days, 1:08, 7 users, load average: 1.80, 1.71, 1.57 -- President Bush said he was 'troubled' by gay people getting married in San Francisco. He said on important issues like this the people should make the decision, not judges. Unless of course we're choosing a president, then he prefers judges. ~ Jay Leno -- gentoo-user@gentoo.org mailing list