History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: EJAB-529
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Christophe Romain
Reporter: Badlop
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ejabberd development

Windows service does not read ejabberdctl.cfg

Created: 21/Feb/08 12:17 PM   Updated: 30/Apr/08 11:32 AM
Component/s: Installer
Affects Version/s: ejabberd 2.0.0
Fix Version/s: ejabberd 2.1.0, ejabberd 2.0.1

Time Tracking:
Not Specified

Environment: Windows, install ejabberd using the Windows binary installer
Issue Links:
Solution
 

Participants: Badlop and Christophe Romain
Company: process-one.net (Find related issues)
Labels:
Days since last comment: 4 weeks, 3 days ago


 Description  « Hide
The linux source package, Linux binary installer and Mac binary installer use ejabberdctl to start ejabberd. This script passes some options to the erlang machine, and also reads ejabberdctl.cfg. This allows the administrator to customize some Erlang options.

The Windows binary installer allows to start ejabberd in two ways: with a Desktop shortcut or a Windows service. The shortcut uses ejabberdctl. But the windows service is created using erlsrv, and it doesn't use ejabberdctl at all.

As a summary: in Windows, the changes in ejabberdctl.cfg are not read if ejabberd is started using the windows service.

 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Christophe Romain - 21/Feb/08 12:24 PM
solution:

1) find a way to declare a service that can call start/stop batch script if possible
2) use erlsrv to start a service node without arguments. from that node we can :
    - cd to the ejabberd directory
    - os:cmd("bash ejabberdctl start").
    - loop on receiving the node kill
    - os:cmd("bash ejabberdctl stop").
    - quit

Christophe Romain - 16/Apr/08 02:57 PM
will implement 2, so we keep using erlsrv, that launches a supervision node. starting ejabberd and monitoring the created node.