$OpenBSD: patch-mosquitto_conf,v 1.4 2018/06/03 14:20:43 jasper Exp $
Index: mosquitto.conf
--- mosquitto.conf.orig
+++ mosquitto.conf
@@ -28,7 +28,7 @@
 # This should be set to /var/run/mosquitto.pid if mosquitto is
 # being run automatically on boot with an init script and 
 # start-stop-daemon or similar.
-#pid_file
+pid_file /var/run/mosquitto.pid
 
 # When run as root, drop privileges to this user and its primary 
 # group.
@@ -36,7 +36,7 @@
 # If run as a non-root user, this setting has no effect.
 # Note that on Windows this has no effect and so mosquitto should 
 # be started by the user you wish it to run as.
-#user mosquitto
+user _mosquitto
 
 # The maximum number of QoS 1 and 2 messages currently inflight per 
 # client.
@@ -157,7 +157,7 @@
 # given, the default listener will not be bound to a specific 
 # address and so will be accessible to all network interfaces.
 # bind_address ip-address/host name
-#bind_address
+bind_address 127.0.0.1
 
 # Port to use for the default listener.
 #port 1883
@@ -494,7 +494,7 @@
 # Note that if the broker is running as a Windows service it will default to
 # "log_dest none" and neither stdout nor stderr logging is available.
 # Use "log_dest none" if you wish to disable logging.
-#log_dest stderr
+log_dest syslog
 
 # If using syslog logging (not on Windows), messages will be logged to the
 # "daemon" facility by default. Use the log_facility option to choose which of
