Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Set Mosquitto Config Not Working On WIndows

Thanks Roger,

 

I had to fix MOSQUITTO_DIR in my environment to make it work.

But one more question to make my life simple:

 

I tried to start mosquitto svc along with config file: (Bcz this is required to start multiple instances of broker with ssl and one default)

sc start mosquitto –c “path of config”

 

Unfortunately looks like mosquitto didn’t load the config file I supplied with –c.

Is it doable what I am currently trying to achieve or not in the scope?

 

Regards,

From: mosquitto-dev-bounces@xxxxxxxxxxx [mailto:mosquitto-dev-bounces@xxxxxxxxxxx] On Behalf Of Roger Light
Sent: 12 October 2016 16:51
To: General development discussions for the mosquitto project <mosquitto-dev@xxxxxxxxxxx>
Subject: Re: [mosquitto-dev] Set Mosquitto Config Not Working On WIndows

 

Hi Vimal,

When installed as a service, mosquitto reads the config file from

%MOSQUITTO_DIR%/mosquitto.conf

Cheers,

Roger

 

On Wed, Oct 12, 2016 at 11:08 AM, Kumar, Vimal <vimal.kumar@xxxxxxxxxxxxx> wrote:

Hi All,

 

Issue: Running Mosquitto along with our custom mosquitto config file.

 

We want to run Mosquitto as a service along with our desired Configuration(mosquitto.conf).

 

I tested on Windows(Win 7) and found it doesn’t accept changes I did in mosquitto.conf file. (e.g., port 8883)

But found that irrespective of the changes, mosquitto always runs on default port(1883) and settings.

 

Following is what I tried:

# sc start mosquitto.                                                       è (I assumed that it should read overridden settings from mosquitto.conf in one go)

#sc start mosquitto –c <mosquitto.conf>              è (Also tried to supply modified mosquitto.conf in args)

 

cid:image001.png@01D22548.CC199F70

 

As shown above, the mosquitto process(9768) is running on port 1883 and not on 8883.

 

Could you guys please share your thoughts on this, or the standard way to achieve the same.

PS: If I run mosquitto as a daemon process “mosquitto –c <mosquitto.conf> -v “, it works like a charm but this is not what is intended at the moment.

       Finally my goal is to run mosquitto svc along with mosquitto.conf which contains ssl settings.

 

Regards,

Vimal Kumar
Senior Software Analyst

Hexagon Safety & Infrastructure

P: +91 40-30015286     M: +91 903 03 509 49  Skype: cyrilvimal
E: 
vimal.kumar@xxxxxxxxxxxxx

 

Global Project Services

Hexagon Capability Center India

Plot no.5, Divya Sree Trinity Campus,

Hi-Tech city, Madhapur, Hyderabad-81, lndia

www.hexagon-cci.com  | www.facebook.com/HexagonCCI

 

HK_email_signature

 


_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev

 


Back to the top