Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » Mosquitto using ram log files(Can get location but not event logs to work)
Mosquitto using ram log files [message #1760645] Sat, 29 April 2017 22:01
alex jennings is currently offline alex jenningsFriend
Messages: 1
Registered: April 2017
Junior Member
I use openhab to control a few things in the house based on whether I am home or not using owntracks and mosquito. All is currently mounted on raspberry pi bit I only get about 4weeks out of SD card before it corrupts. To try and prolong life I have moved all log files to tmpfs and everything works except event notifications coming into mosquito from openhab.

I have amended /etc/fstab with
tmpfs   /var/log                tmpfs   size=20M,defaults,noatime,mode=0755 0 0 
tmpfs   /var/cache/apt/archives tmpfs   size=100M,defaults,noexec,nosuid,nodev,mode=0755 0 0
tmpfs   /var/spool/cups         tmpfs   size=100M,defaults,noatime,mode=0755 0 0
tmpfs   /var/spool/cups/tmp     tmpfs   defaults,noatime,mode=0755 0 0


Then to get mosquito to work at all I added this to the start section of etc/init.d/mosquito.
mkdir /var/log/mosquitto
mkdir /var/log/mosquitto.log


and my mosquito.conf file is as follows
pid_file /var/run/mosquitto.pid

persistence true
persistence_location /var/lib/mosquitto/

log_dest file /var/log/mosquitto/mosquitto.log
log_type warning
log_type notice
log_type information
log_type error
include_dir /etc/mosquitto/conf.d


So what am I missing, how do I get events (i.e moving into a region in owntracks) to be listed in mosquito.
many thanks
Previous Topic:Maximum number of connections supported by mosquitto broker
Next Topic:OpenSSL error....can't figure it out
Goto Forum:
  


Current Time: Sat Sep 22 11:55:40 GMT 2018

Powered by FUDForum. Page generated in 0.01446 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top