Browse Source

déplace la base sqlite3 dans la ram et crée un lien symbolique

nas 3 years ago
parent
commit
e435d8f212
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      db/db_to_ram.sh

+ 7
- 0
db/db_to_ram.sh View File

@@ -0,0 +1,7 @@
1
+#!/bin/sh
2
+
3
+mkdir /mnt/db
4
+mount -t ramfs -o size=50m ramfs /mnt/db
5
+
6
+mv /var/run/pyheatpump/pyheatpump.sqlite3 /mnt/db
7
+ln -s /mnt/db/pyheatpump.sqlite3 /var/run/pyheatpump/

Loading…
Cancel
Save