|
|
#1 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 262
Karma: 100000
Join Date: Oct 2012
Device: Calibre
|
make calibre-server use a lock file?
I see there is an option to make calibre-server write the PID to a file. Is this PID a lockfile? If not, is there a way to make calibre-server use a lockfile so multiple instances cannot run?
(I run into this problem because I use initab to respawn calibre-server if it stops running, yet several instances are respawned.) |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,610
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre-server is designed to run multiple instances so you can, for instance, serve different libraries on different ports. So no, the pidfile is not a lock file. It should be trivial to create a wrapper script that creates a lock file for you.
|
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 262
Karma: 100000
Join Date: Oct 2012
Device: Calibre
|
Quote:
I see people using flock. However, I solved the problem even more easily by removing the "--daemonize" flag! Last edited by Geremia; 01-20-2017 at 04:56 PM. |
|
|
|
|
![]() |
| Tags |
| calibre-server |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Make Calibre Content Server to serve the original EPUBs | cedhax | Related Tools | 4 | 02-23-2020 01:29 PM |
| 500 Internal Server Error accessing content server Calibre 0.8.8 | DaddyO57 | Calibre | 1 | 07-20-2012 07:08 PM |
| Calibre Content Server - file names | r3mus | Library Management | 4 | 03-23-2012 04:30 AM |
| File lock for multiuser Calibre ??? | rjalex | Related Tools | 11 | 04-22-2011 05:43 AM |
| Android lock your Edge with a password - all apps lock including Journals | cheyennedonna | enTourage Archive | 11 | 01-03-2011 06:04 PM |