déplace la base sqlite3 dans la ram et crée un lien symbolique
This commit is contained in:
parent
995bf12e6d
commit
e435d8f212
1 changed files with 7 additions and 0 deletions
7
db/db_to_ram.sh
Normal file
7
db/db_to_ram.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
mkdir /mnt/db
|
||||
mount -t ramfs -o size=50m ramfs /mnt/db
|
||||
|
||||
mv /var/run/pyheatpump/pyheatpump.sqlite3 /mnt/db
|
||||
ln -s /mnt/db/pyheatpump.sqlite3 /var/run/pyheatpump/
|
||||
Loading…
Add table
Add a link
Reference in a new issue