Re: [CentOS] $HOME variable not set from init script

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



Hi James,
as recommended in the miemdefang list(and you), I added this line in mimedefang init file:
 export HOME=/path/to/home
in order to solve the problem

I was thinking that /sbin/runuser could unset all variables that was setup
by bash in /etc/init.d/mimedefang

Thanks
Oliver

James Olin Oden wrote:
such that I could suggest a solution to your problem.  I will say that
in the past I have made the script that is to be ran in that
environment give HOME a default of some sort so if/when it was ran out
of init it would still function properly (BTW, its likely you would
see this in cron too).

--
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