Using the SmartServer of v0.15 with xinetd
John Arbash Meinel
john at arbash-meinel.com
Thu Apr 12 17:53:24 BST 2007
Aaron Bentley wrote:
> Thomas Ackermann wrote:
>> Aaron Bentley schrieb:
>>> So, two alternatives are:
>>>
>>> 1. invoke su directly:
>>> server = /sbin/su
>>> server_args = - bzruser bzr serve --inet\
>>> --directory=/home/archive/bzr
>>>
>> Need to test that ... quite unsual for an xinted file :)
>
> Actually, it's based on the example given in the FAQ for "How to do
> setup a chrooted environment for a service"
>
>>> 2. specify HOME directly, using the env parameter
>>>
>> I will try to do this, but ~/.bashrc should be sourced anyway ... and
>> that did not work!
>
> It looks very much like xinetd does not invoke a shell. Do you have a
> reason to believe that it does?
>
> Aaron
Also, even if it does source ~/.bashrc, remember that ~ == $HOME, and
right now $HOME == '/root'.
So it is sourcing /root/.bashrc, not /home/archive/bzr/.bashrc.
John
=:->
More information about the bazaar
mailing list