public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] local.start and sending an email
@ 2005-11-03 21:04 John J. Foster
  2005-11-03 21:19 ` Billy Holmes
  0 siblings, 1 reply; 17+ messages in thread
From: John J. Foster @ 2005-11-03 21:04 UTC (permalink / raw
  To: Gentoo User

[-- Attachment #1: Type: text/plain, Size: 891 bytes --]

Good afternoon,

I have the following 2 entries in /etc/conf.d/local.start

# Record system restart
echo "System restart on   `date +%F`   at   `date +%R`" >> /var/log/reboot.log

# Send email notification that the system just restarted
date|mutt -s 'System restarted' myemail@myprovider

The first one properly records the fact that the system has been
restarted, but I do not receive an email. Watching the console as the
system comes up, I see a Segmentation Fault when the second command
executes. Running that command from a shell prompt works fine. I am
under the impression, possibly incorrectly, that local.start is run 
after all other init scripts.

depend() {
        after *
}

Do I perhaps need to pause a bit in order to let something else finish?
I am using ssmtp for mail.

Thanks,
John

-- 
If voting could change anything,
it would be illegal

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2005-11-06 13:11 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-03 21:04 [gentoo-user] local.start and sending an email John J. Foster
2005-11-03 21:19 ` Billy Holmes
2005-11-03 23:07   ` Peper
2005-11-04  1:48   ` John J. Foster
2005-11-04  8:14     ` Neil Bothwick
2005-11-04 13:16       ` John J. Foster
2005-11-04 13:41         ` Peper
2005-11-04 14:30           ` Peper
2005-11-04 13:47         ` Neil Bothwick
2005-11-04 14:05           ` John J. Foster
2005-11-04 15:33             ` Neil Bothwick
2005-11-04 15:14         ` John J. Foster
2005-11-05  0:16           ` John J. Foster
2005-11-05 22:52             ` Neil Bothwick
2005-11-06  0:26               ` John J. Foster
2005-11-06  7:16                 ` [gentoo-user] " Francesco Talamona
2005-11-06 13:03                   ` John J. Foster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox