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
This commit is contained in:
Ron Miller
2017-11-29 02:52:50 -08:00
committed by Pascal Vizeli
parent 6edf139b61
commit 61a6e7cefe
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "MariaDB", "name": "MariaDB",
"version": "0.1", "version": "0.2",
"slug": "mariadb", "slug": "mariadb",
"description": "An SQL database server", "description": "An SQL database server",
"url": "https://home-assistant.io/addons/mariadb/", "url": "https://home-assistant.io/addons/mariadb/",

View File

@@ -18,7 +18,7 @@ fi
# Start mariadb # Start mariadb
echo "[INFO] 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=$! MARIADB_PID=$!
# Wait until DB is running # Wait until DB is running