View Single Post
Old 12-02-2012, 03:36 PM   #6
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by hakan42 View Post
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"
I use
Code:
check file metadata.db with path ..../metadata.db
  if changed timestamp
     then exec "/etc/init.d/calibre-server restart"
where ..../metadata.db is the full path to the library in the dropbox directory.
chaley is offline   Reply With Quote