rc.d and environment variables

Victor Sudakov vas at mpeks.tomsk.su
Thu Dec 23 18:27:57 UTC 2010


Colleagues,

The svnserve daemon is started from /usr/local/etc/rc.d/svnserve. I need to
pass the environment variable KRB5_KTNAME=/home/svn/svn.keytab to the
daemon on start. How do I do that?

I tried to do this via a login class for the svn user, but it did not
work. If I first 'su -l svn' and then start the daemon manually, the
environment variable is set all right, but not when it is started from
/usr/local/etc/rc.d/svnserve.

All this is happening on 8.1-RELEASE-p2.
Thanks in advance for any help. 

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:sudakov at sibptus.tomsk.ru


More information about the freebsd-questions mailing list