[CentOS] $HOME variable not set from init script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,
I'm using Centos 4.4 with: mimedefang.org + spamassassin.org

Mimedefang(MD) is a perl program that calls SpamAssassin(SA) perl module.

The problem I'm getting is that from update 4.4, SA does not seems
to find the $HOME variable only when it is called during system boot.
If you later login as root and run:
$ service mimedefang restart
then SA does indeed find the $HOME variable

I checked the /etc/init.d/mimedefang file and the chain of commands
seems to be this:

/etc/init.d/mimedefang -> daemon function from /etc/init.d/function ->
/sbin/runuser

SpamAssassin perl module is called from the mimedefang perl program.

I'm thinking that /sbin/runuser is the root cause of the problem.

My questions are:
- does /sbin/runuser set the $HOME at boot time?
- should /sbin/runuser be called with the -l option?

Thanks
Oliver

--
Oliver Schulze L.
Get my e-mail after a captcha test in: http://tinymailto.com/oliver

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux