<div dir="ltr">Dan,<br><br>My understanding is that you can specify options for an application as follows:<br><ul><li>On the command line as -MyAppName key value</li><li>In the config file as {MyAppName, [{key, value}]}</li>
<li>In the .app file<br></li></ul>The command line overrides the config file settings, which override the app file settings.<br><br>On the command line, writing -mnesia foo bar simply inserts the key/value pair {foo, bar} into the application environment for mnesia. I expect (but am no expert) that you shoud be able to put the values in the config file just as you can for sasl and any other app.<br>
<br>Example:<br><span style="font-family: courier new,monospace;">[</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> {sasl,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> [</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> {sasl_error_logger, {file, "/tmp/foo.sasl_log"}}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> ]<br> },</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> {mnesia,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> [</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {dir, "/my/mnesia/dir"}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> ]<br>
}</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">]</span><br><br>It's worth a try anyway.<br><br>Regards,<br>Ed<br><br><br><div class="gmail_quote">On Sun, Sep 28, 2008 at 7:04 AM, Dan Rubino <span dir="ltr"><<a href="mailto:webaccounts@rubino.co.uk">webaccounts@rubino.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br>
<br>
I have setup a release as suggested whilst specifying Mnesia in the list<br>
of required apps. This starts Mnesia automatically which is perfect.<br>
<br>
Now when I look at mnesia through the appmon, I see it has a supervisor<br>
attached to it - great. My question now is of course, am I able to<br>
specify the restart strategy for it? Can I see the settings it is<br>
currently running under perhaps (just so I can understand its<br>
behaviour)?<br>
<br>
Also, is there another way within a release to specify the directory of<br>
the Mnesia instance? So what I am saying is I currently use the<br>
commandline option -mnesia dir '"/path/to/mnesia/instance"'<br>
<br>
Is there another way to specify this in config perhaps?<br>
<br>
Many Thanks,<br>
Dan<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
</blockquote></div><br></div>