From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: a Trytond service Date: Sun, 10 Sep 2017 19:30:58 +0200 Message-ID: References: <20170909113939.5be805ec@cbaines.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1aebac598a470558d92c7a" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dr64U-0006np-Qm for guix-devel@gnu.org; Sun, 10 Sep 2017 13:31:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dr64T-0004RJ-IZ for guix-devel@gnu.org; Sun, 10 Sep 2017 13:31:02 -0400 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:46761) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dr64T-0004Q0-7f for guix-devel@gnu.org; Sun, 10 Sep 2017 13:31:01 -0400 Received: by mail-wm0-x22e.google.com with SMTP id i189so26261482wmf.1 for ; Sun, 10 Sep 2017 10:30:59 -0700 (PDT) In-Reply-To: <20170909113939.5be805ec@cbaines.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Christopher Baines , Hartmut Goebel Cc: guix-devel --94eb2c1aebac598a470558d92c7a Content-Type: text/plain; charset="UTF-8" 2017-09-09 12:39 GMT+02:00 Christopher Baines : > On Fri, 8 Sep 2017 21:42:24 +0200 > Catonano wrote: > > > I'm trying to write a service for Trytond > > > > There are tons of things i don't know/understand > > > > But this is the first one: > > > > The Tryton manual states that I need to indicate a "data directory" > > to the daemon and that such directory should be: > > > > "The directory where Tryton stores files and so the user running > > trytond must have write access on this directory. > > Default: The db folder under the user home directory running trytond." > > > > See here (notice that this is in the "database" section of te > > configuration) > > > > http://doc.tryton.org/4.4/trytond/doc/topics/configuration.html#database > > > > My idea was that Tryton would have used a postgres managed by the > > omonimous service, so my user and my home folder shouldn't be > > concerned, here > > > > I don't know enough of the Unix assumptions here > > Some users for services use some /var/run directory as there home > directory, which works if the data doesn't need to survive reboots. > Otherwise, the data should go in to /var/lib. > > The Tryton documentation isn't very clear to me either, Using PostgreSQL > sounds like a good place to start, and ideally it would be flexible > enough that any of the options are available when using the Guix > service. > Thank you Christopher Hartmut, good to know that there is a fellow trytonista here ;-) I asked on their mailing list and the answer I got is that the data older could be used for attachments, for example. So I think we are in the situation where the folder has to be writable to trytond AND its contents should be resilient to reboots. That is clarified, so far Their mailing list is hosted on google groups so I can only point you there, for reference https://groups.google.com/forum/#!topic/tryton/KEeGDBNjXBs --94eb2c1aebac598a470558d92c7a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
2017-09-09 12:39 GMT+02:00 Christopher Baines <mail@cbaine= s.net>:
On Fri, 8 Sep 2017 21:4= 2:24 +0200
Catonano <catonano@gmail.com&g= t; wrote:

> I'm trying to write a service for Trytond
>
> There are tons of things i don't know/understand
>
> But this is the first one:
>
> The Tryton manual states that I need to indicate a "data director= y"
> to the daemon and that such directory should be:
>
> "The directory where Tryton stores files and so the user running<= br> > trytond must have write access on this directory.
> Default: The db folder under the user home directory running trytond.&= quot;
>
> See here (notice that this is in the "database" section of t= e
> configuration)
>
> http://doc.tryton.org/4= .4/trytond/doc/topics/configuration.html#database
>
> My idea was that Tryton would have used a postgres managed by the
> omonimous service, so my user and my home folder shouldn't be
> concerned, here
>
> I don't know enough of the Unix assumptions here

Some users for services use some /var/run directory as there home directory, which works if the data doesn't need to survive reboots.
Otherwise, the data should go in to /var/lib.

The Tryton documentation isn't very clear to me either, Using PostgreSQ= L
sounds like a good place to start, and ideally it would be flexible
enough that any of the options are available when using the Guix
service.

Thank you Christoph= er

Hartmut, good to know that there= is a fellow trytonista here ;-)

I = asked on their mailing list and the answer I got is that the data older cou= ld be used for attachments, for example.

So I think we are in the situation where the folder has to be writabl= e to trytond AND its contents should be resilient to reboots.

=
That is clarified, so far

Their mailing list is hosted on google groups so I can on= ly point you there, for reference
https://groups.google.com/forum/#!topic/tr= yton/KEeGDBNjXBs
--94eb2c1aebac598a470558d92c7a--