daemon function in /etc/init.d uses a login shell when used with --user flag
$nice initlog $INITLOG_ARGS -c "su - $user -c \"$*\"" && success "%s startup" 
$base || failure "%s startup" $base
using a su - $user make it impossible to pass env var to launched process :-( 
Is there a particular reason for this ? It could be possible to modify user's 
profile, but not with pseudo-users with no shell associated.
One solution could be to use 'su $user -c' directly in service script, but 
then you break service launch unified look.
-- 
Guillaume Rousse <[EMAIL PROTECTED]>
GPG key http://bohm.snv.jussieu.fr/~rousse/gpgkey.html

Reply via email to