View Single Post
Old 12-02-2012, 03:25 PM   #5
hakan42
Zealot
hakan42 is on a distinguished road
 
hakan42's Avatar
 
Posts: 136
Karma: 60
Join Date: Jul 2009
Location: Munich, Germany
Device: Nook Classic rooted; Galaxy S IV with Aldiko, other older devices
Quote:
Originally Posted by chaley View Post
To get around this I use monit to monitor the timestamp on metadata.db. If it changes, then monit restarts the calibre server (init.d/calibre-server). The calibre init.d script stops calibre, copies metadata.db to somewhere not in dropbox-land, sets $CALIBRE_OVERRIDE_DATABASE_PATH to that file, and then restarts calibre.
Do you mind sharing your monit configuration for restarting the server? I encountered this piece of software for the first time and have a slightly hard time configuring it correctly

The following does not work correctly for me (yet):
Code:
check file metadata.db with path /home/calibre/Dropbox/Calibre/metadata.db
        if timestamp > 5 minutes
                then exec "/etc/init.d/calibre-server restart"
hakan42 is offline   Reply With Quote