windows service not starting when modifying config

Asked by trs

hi all,

have a problem with mosquitto (latest version) and the service in windows:

fresh install of mosquitto --> background service running fine after restart.
modify mosquitto-config --> service does not start after restart and cant be startet manually.
revert to default config --> service running fina after restart.

the problem might be that my modification of the config file is wrong...
all i want is a simple unencrypted password protection with username.

therefore i create a passwd file with contents "user:password" and modify these lines in the config:

#allow_anonymous true --> allow_anonymous false
#password_file --> c:\mosquitto\passwd

what am i doing wrong, or better what should i modify to get a correct config?
thanks!!!

Question information

Language:
English Edit question
Status:
Solved
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Solved by:
trs
Solved:
Last query:
Last reply:
Revision history for this message
trs (spam-7) said :
#1

ahhh,
just solved it myself.

this line was correct: #allow_anonymous true --> allow_anonymous false

but this line #password_file should be modified to --> password_file c:\mosquitto\passwd

thx!

Revision history for this message
Roger Light (roger.light) said :
#2

Great, glad you got it sorted.

On Mon, Sep 29, 2014 at 1:30 PM, trs
<email address hidden> wrote:
> Question #255138 on mosquitto changed:
> https://answers.launchpad.net/mosquitto/+question/255138
>
> Status: Open => Solved
>
> trs confirmed that the question is solved:
> ahhh,
> just solved it myself.
>
> this line was correct: #allow_anonymous true --> allow_anonymous false
>
> but this line #password_file should be modified to --> password_file
> c:\mosquitto\passwd
>
> thx!
>
> --
> You received this question notification because you are a member of
> Mosquitto PPA, which is an answer contact for mosquitto.