Sfoglia il codice sorgente

Try to keep mariadb running

Bob Mottram 7 anni fa
parent
commit
5cf9fdd93e
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4
    0
      src/freedombone-utils-database

+ 4
- 0
src/freedombone-utils-database Vedi File

@@ -177,6 +177,10 @@ function install_mariadb {
177 177
     systemctl daemon-reload
178 178
     systemctl restart mariadb
179 179
 
180
+    # mariadb daemon seems to occasionally crash
181
+    # This is a crude attempt to keep it running
182
+    add_watchdog_daemon mariadb
183
+
180 184
     run_query mysql "CREATE USER 'root@localhost' IDENTIFIED BY '${MARIADB_PASSWORD}'; flush privileges;"
181 185
     run_query mysql "update mysql.user set plugin = '' where User='root@localhost'; flush privileges;"
182 186
     run_query mysql "GRANT ALL PRIVILEGES ON * TO 'root@localhost'; flush privileges;"