Dmitry,
Here is how I have my fossil repository setup.  The following 
configuration is in /etc/xinetd.d/fossil-myproject

     service fossil-myproject
     {
         flags        = REUSE
         socket_type    = stream
         wait        = no
         user        = fossil
         server        = /usr/local/bin/fossil
         server_args    = http /opt/fossil/myproject.fossil
         log_on_failure    += USERID
         disable        = no
     }
I added fossil-myproject to /etc/service in order to map the port to 
fossil-myproject

xinetd runs as root so it can do a switch-user to any user ID before it 
does a fork-exec of fossil.

There are probably better ways (at least numerous other ways) to run the 
fossil server, but I find this the easiest to manage.

//Bill

On 01/25/2011 10:28 AM, Lluís Batlle i Rossell wrote:
> On Tue, Jan 25, 2011 at 10:20:06AM -0500, Bill Whiting wrote:
>> Dmitry,
>> I checked the permissions.  I am not running this from apache, fossil is
>> launched from xinetd, so the fossil process is owned by the same user
>> that owns the fossil repository file.
> I don't think this is generally true. The fossil process will be owned by the
> same user as xinetd, or whatever says xinetd about changing the user. Isn't 
> it?
>
>> On 01/25/2011 10:09 AM, Dmitry Chestnykh wrote:
>>>>       Error: Database error: unable to open database file
>>>>       CREATE TEMP TABLE onremote(rid INTEGER PRIMARY KEY);
>>> Check permissions and ownership of fossil repository file. Are your web 
>>> process allowed to write to this file?
>>>
>>> --
>>> Dmitry Chestnykh
>>>
>>> _______________________________________________
>>> fossil-users mailing list
>>> [email protected]
>>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>>
>> _______________________________________________
>> fossil-users mailing list
>> [email protected]
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>

_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to