Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I run the multiple mosquitto with the different config? #526

Closed
AlirezaMoseni opened this issue Aug 23, 2017 · 0 comments
Closed

Comments

@AlirezaMoseni
Copy link

hi guys
I want to run mosquitto with the different config on a server
I create a folder for that and put configs and files in that
this is my config


port 12345
auto_id_prefix test-
clientid_prefixes test-
log_dest file /home/test/Users/username/files/log.log
password_file file /home/test/Users/username/files/log.log
acl_file file /home/test/Users/username/files/log.log
persistence_location /home/test/Users/username/files
pid_file /home/test/Users/username/mosquitto.pid
include_dir /home/test/Users/username/conf.d


/conf.d config:
sys_interval 60
max_queued_messages 30
max_inflight_messages 5
message_size_limit 40
persistent_client_expiration 7d
max_connections 25
allow_zero_length_clientid true
persistence_file persistence.db
use_username_as_clientid true
log_dest topic
log_type error
log_type warning
log_type notice
log_type information
log_type debug
log_type subscribe
log_type unsubscribe
connection_messages true
log_timestamp true


i run mosquitto with this command
sudo mosquitto -c /home/test/Users/username/config.conf
mosquitto runs well but those configs were not applied in it and pid has not been writen in specified pid file
How can I run this as service? Every time I restart server , they run automatically

@AlirezaMoseni AlirezaMoseni reopened this Aug 26, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant