Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  Mnesia dir and conf file

Guest
Posted: Fri Apr 18, 2008 10:00 am Reply with quote
Guest
Hi,
Is it possible to set the mnesia directory into the config file
(/etc/yaws/yaws.conf for Debian) instead of an argument passing with
--mnesiadir ? I didn't see anything about that at
http://yaws.hyber.org/yman.yaws?page=yaws.conf .

For a Debian system I have to modify the file /etc/init.d/yaws to add
--mnesiadir <my dir>, not so clean.

Thanks in advance.


/gburri

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
rbucker881
Posted: Sun May 18, 2008 3:59 pm Reply with quote
User Joined: 11 Oct 2007 Posts: 17
there is no reason why you could not implement this yourself. Put the DIR in you opaque section and in your startup mod you'd set the dir and start mnesia.

I'm relatively new to yaws (only a year or so) so I do not know if there was/is a reason for not making it by default... except Mnesia databases can be node() locked and so replicated DBs and nodes "could" become more complicated if the conf file were shared.

So... sure you can. Or you could always make the code changes yourself and submit back to Klacke.
View user's profile Send private message
rbucker881
Posted: Sun May 18, 2008 6:23 pm Reply with quote
User Joined: 11 Oct 2007 Posts: 17
I've submitted code changes to Klacke. We'll see if it makes it into the next stable branch.

/r
View user's profile Send private message
rbucker881
Posted: Mon May 19, 2008 7:32 pm Reply with quote
User Joined: 11 Oct 2007 Posts: 17
Here is an email discussion with klacke:


Quote:
ok - applied - thanks

Semi reluctantly though since I don't like adding stuff to neither
#gconf nor #sconf since these structs get copied into every new
created process. One more word of copying.

/klacke


I responded.

Quote:
agreed. I did not like that aspect of it either, however, I weighed the benefit against having to deploy different init.d script for each datadomain. At least here the mnesia_dir is isolated to the config file.

release notes should recommend rebuilding any libs that used the record(s).

/r



So the code is in trunk and will make it into the next stable release. remember to rebuild your project code before deploying because the config structure has been altered.
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum