From 61a6e7cefe9d420469c8d9848786474ee5b177b9 Mon Sep 17 00:00:00 2001 From: Ron Miller Date: Wed, 29 Nov 2017 02:52:50 -0800 Subject: [PATCH] Disable binlogging by default (#204) * Add binlogging caps The default binlogging for mariadb will easily fill a modest disk after a couple of weeks on a busy instance. This setting will limit that usage and have mariadb rotate the logs out after 1 day. * Disable binlogging on mariadb Binlogging will, by default, run amok on the drive and fill it. It's also going to run a lot of write cycles to SD cards which will considerably shorten their lifespan. * Update run.sh * Update config.json --- mariadb/config.json | 2 +- mariadb/run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mariadb/config.json b/mariadb/config.json index e85cbb0..8a0eeee 100644 --- a/mariadb/config.json +++ b/mariadb/config.json @@ -1,6 +1,6 @@ { "name": "MariaDB", - "version": "0.1", + "version": "0.2", "slug": "mariadb", "description": "An SQL database server", "url": "https://home-assistant.io/addons/mariadb/", diff --git a/mariadb/run.sh b/mariadb/run.sh index d8dee8d..b70c839 100644 --- a/mariadb/run.sh +++ b/mariadb/run.sh @@ -18,7 +18,7 @@ fi # Start mariadb echo "[INFO] Start MariaDB" -mysqld_safe --datadir="$MARIADB_DATA" --user=root < /dev/null & +mysqld_safe --datadir="$MARIADB_DATA" --user=root --skip-log-bin < /dev/null & MARIADB_PID=$! # Wait until DB is running