Erlang/OTP Forums

Author Message

<  RabbitMQ mailing list  ~  Suggestions for server startup script

Guest
Posted: Thu Sep 06, 2007 9:43 am Reply with quote
Guest
Hi,

I would like to offer a few suggestions to make the server startup scripts
a bit easier to use.

- I already had erlang installed separately and really do not like to copy
stuff into another installation's directory; I initially ended up with a
couple of erl_dumps until I understood that the app search path was not
correct. Those dumps are very interesting to read for this VM geek but not
what I was after Smile
Starting everything in the ebin dir worked immediately. Maybe adding a
line like:

-pa %RABBITMQ_BASE%/ebin ^

to the erl start command would make this easier for others.

- good Java projects that have shell launchers make sure that logs,
databases etc. are not created all over the place:

set MNESIA_BASE=%RABBITMQ_BASE_UNIX%/db
set LOG_BASE=%RABBITMQ_BASE_UNIX%/log

May seem a bit overly pedantic, but it makes stuff a bit easier to debug
and more predictable.

thanks
Holger


_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post recived from mailinglist
tonyg
Posted: Thu Sep 06, 2007 10:33 am Reply with quote
User Joined: 07 Nov 2006 Posts: 199
Hi Holger,

Thanks for the suggestions - they all sound pretty good to me. Do you
have code in a state where you could send a patch or simply a snapshot
of what you have working? I'll file a bug report in our bugzilla so that
we don't forget the idea - we should aim to include your suggestions in
our next broker release.

Regards,
Tony


Holger Hoffst
View user's profile Send private message MSN Messenger
Guest
Posted: Thu Sep 06, 2007 10:56 am Reply with quote
Guest
Holger,

Holger Hoffst
Guest
Posted: Thu Sep 06, 2007 3:38 pm Reply with quote
Guest
Matthias Radestock wrote:
> Holger,
>
> Holger Hoffst
Guest
Posted: Thu Sep 06, 2007 4:16 pm Reply with quote
Guest
Holger Hoffst
Guest
Posted: Thu Sep 06, 2007 4:35 pm Reply with quote
Guest
Matthias Radestock wrote:
> Right. Ideally it would "just work" though, without having to change any
> settings. Unfortunately locating the Erlang/OTP home from a batch script
> on Windows is fairly difficult.

Maybe this will help:
http://www.pankaj-k.net/archives/2004/11/equivalent_of_w.html

C:\home\holger>which.cmd python.exe
Found in PATH: C:\Developer\Python\python.exe

Of course then someone will have a completely unrelated binary named
"erl.exe" in their path.. If no erl.exe is found and no ERLANG_HOME is set
the script can still error out.

happy .bat hacking Smile

Holger


_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post recived from mailinglist
Guest
Posted: Thu Sep 06, 2007 4:45 pm Reply with quote
Guest
Holger Hoffst

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 cannot attach files in this forum
You cannot download files in this forum