Wild guess: You are misspelling your username as 'deamon', not 'daemon'.
On Thu, Jun 7, 2012 at 1:02 PM, Marcos Martínez < [email protected]> wrote: > Hi guys, > > I'm trying run "ejabberd" using supervisord. First, I've tried to use > a section like the following one: > > [program:ejabberd] > user=deamon > autostart=true > process_name=ejabberd > environment=HOME="/opt/my-server/var/lib/ejabberd" > command=/opt/my-server/erlang/bin/erl -K true -P 250000 -sname > ejabberd@localhost -noshell -noinput -pa > /opt/my-server/ejabberd/lib/ejabberd/ebin -ejabberd config > \"/opt/my-server/etc/ejabberd/ejabberd.cfg\" -mnesia dir > \"/opt/my-server/var/lib/ejabberd\" -s ejabberd -sasl > sasl_error_logger > \{file,\"/opt/my-server/var/log/ejabberd/erlang.log\"\} -smp auto > start > > The process starts and run succesfully but it runs as a root user not > daemon user. The strange thing is that I'm controling couchdb and > rabbitmq (also erlang based servers) and in these cases the process > run as daemon (as I expected). > > For more info: If is execute something like "su -s /bin/bash daemon -p > -c '/opt/my-server/erlang/bin/erl -K true -P 250000...'", the ejabberd > process runs succesfully as daemon user. The question is. Why > supervisor can't execute the process using the daemon user? > > Any clue regarding this strange behaviour will be appreciate. > > -- > Marcos Martínez > _______________________________________________ > Supervisor-users mailing list > [email protected] > http://lists.supervisord.org/mailman/listinfo/supervisor-users > -- Todd DeLuca http://todddeluca.com http://wall.hms.harvard.edu/
_______________________________________________ Supervisor-users mailing list [email protected] http://lists.supervisord.org/mailman/listinfo/supervisor-users
