I get "erlexec: HOME must be set" messages in my logs and my script does not start when run from /etc/rc.local but it works fine when I run it from the console.
Script is below:
##start ejabberd
ERL=/usr/local/bin/erl
$ERL -pa /var/lib/ejabberd/ebin -detached \
-sname ejabberd \
-s ejabberd \
-ejabberd config \"/etc/ejabberd/ejabberd.cfg\" log_path \"/var/log/ejabberd/ejabberd.log\" \
-sasl sasl_error_logger \{file,\"/var/log/ejabberd/sasl.log\"\} \
-mnesia dir \"/var/lib/ejabberd/spool\"
Can anyone help here?...I would like to ejabberd to start at boot.
Did you try to set the HOME s
Did you try to set the HOME system variable? Just add HOME=/home/kodion or whatever after ERL=... on that script.
Thanks...that worked.
Thanks...that worked.
my earlier post was too hasty
my earlier post was too hasty. It had worked without errors when I ran /etc/rc.local from the console logged in as root and the error message didn't show up in the logs. The error message however reappeared when I rebooted the server and ejabberd still does not run automatically
I still need help
So the problem appears when E
So the problem appears when Erlang is started by the system instead of a regular user. I tried to emulate your problem in Debian GNU/Linux sid with Erlang/OTP R10B-4 creating a new system user with no home, and I found no problems:
What Erlang version? What operating system? Try what I did, does it succeed?
Badlop, Sorry for this
Badlop, Sorry for this belated response....other things took precedence
I am running Mandrake 10 with Erlang/OTP R10B-4 and I created a test user and successfully ran erl. What should I do next?
Same problem
Same problem here, running erlang/otp r10b-8, ejabberd 0.9.8 on suse 9.1, it runs perfect form console, but no from starup with same message, anyone can help?
Problem Solved
some guys toldme to try with:
export HOME=/some/home
in the script and it works!!!