Re: [gentoo-user] Re: local.start and sending an email

2005-11-06 Thread John J. Foster
On Sun, Nov 06, 2005 at 08:16:44AM +0100, Francesco Talamona wrote:
  source /etc/profile
  /usr/bin/date | /usr/bin/mutt -s System restarted [EMAIL PROTECTED]
 
  Now, the error message
 
  Error sending message, child exited 1 ().
  /etc/conf.d/local.start: line 15: 19174 Done
  /usr/bin/date
   19175 Segmentation fault  | /usr/bin/mutt -s System
  restarted [EMAIL PROTECTED]
 
 I reread the whole thread, till now we focused on mail program, but 
 segfault came just after date command, maybe we just looked in the 
 wrong direction...

Yeah, I thought that at first. Except for the error sending message
line and that changing to mailx works properly.
 
 Do you have all partitions mounted at the time local runs, 
 are /usr /var /lib ... all mounted and accessible by then?

Yep - only have a /, /boot and a swap

 permission problem? So who is the user running the script?...

root during boot

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


pgp7ANvN325sG.pgp
Description: PGP signature


[gentoo-user] Re: local.start and sending an email

2005-11-05 Thread Francesco Talamona
On Sunday 06 November 2005 01:26, John J. Foster wrote:
 On Sat, Nov 05, 2005 at 10:52:20PM +, Neil Bothwick wrote:
  If the same command works in a terminal, it could be a difference
  in the environment. The first thing I would try is running source
  /etc/profile right before the mutt call.

 No go. Just for review, here's a few lines from local.start.

 source /etc/profile
 /usr/bin/date | /usr/bin/mutt -s System restarted [EMAIL PROTECTED]

 Now, the error message

 Error sending message, child exited 1 ().
 /etc/conf.d/local.start: line 15: 19174 Done
 /usr/bin/date
  19175 Segmentation fault  | /usr/bin/mutt -s System
 restarted [EMAIL PROTECTED]

I reread the whole thread, till now we focused on mail program, but 
segfault came just after date command, maybe we just looked in the 
wrong direction...

Do you have all partitions mounted at the time local runs, 
are /usr /var /lib ... all mounted and accessible by then? Can it be a 
permission problem? So who is the user running the script?...

Ciao
Francesco
-- 
Linux Version 2.6.12-gentoo-r9, Compiled #2 Wed Aug 24 18:43:16 CEST 
2005
One 2.2GHz AMD Athlon 64 Processor, 2GB RAM, 4325.37 Bogomips Total
aemaeth
-- 
gentoo-user@gentoo.org mailing list