View Single Post
Old 01-17-2015, 08:57 AM   #6
Caleb666
Zealot
Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.
 
Posts: 100
Karma: 400000
Join Date: Jul 2010
Device: iPad 2 64GB
Quote:
Originally Posted by itimpi View Post
Although the content server mounts the database with read-write permissions, I have a feeling that it never actually writes to the database and the requirement for write access is an artefact of the database interfacing library in use. Maybe you will be able to see for certain with the approach you are using?
You are correct, I don't see a copy of the database file in the temp folder. So I guess that deleting the temp folder might not be strictly necessary, but I still prefer to do it.

I'm working on a script that will wrap all this functionality into a service so I could simply do "sudo service calibre-ro-server start/stop/restart" and have it do all the necessary work. Then I might simply add a cronjob to restart the service (which will clear the temp folder) at 3am or something.

I will post it here once I'm done, if anyone's interested.
Caleb666 is offline   Reply With Quote