Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-25-2017, 01:33 AM   #1
jdege
Connoisseur
jdege began at the beginning.
 
Posts: 65
Karma: 10
Join Date: May 2011
Device: Samsung Tablet
Linux upstart script for calibre-server 3.3?

Does anyone have a working upstart script for calibre-server 3.3?

I'd been running calibre-server as an auto-start daemon for a good many years, but when I updated from version 2.x to 3.3, the upstart script I'd been using stopped working.

There are a number of scripts for version 2.x around, if you go looking :

http://thanosk.net/content/running-c...-under-systemd

https://gist.github.com/razrichter/4157867

But they all seem to use the 2.x arguments.

Does anyone have a script that will work with version 3.3?
jdege is offline   Reply With Quote
Old 10-07-2017, 11:01 PM   #2
jdege
Connoisseur
jdege began at the beginning.
 
Posts: 65
Karma: 10
Join Date: May 2011
Device: Samsung Tablet
I finally got around to spending the time to figure out what I was doing wrong.

This is working for me:

/etc/init/calibre-server.conf:

Code:
description "Calibre (ebook manager) content server"

start on runlevel [2345]
stop on runlevel [^2345]

respawn

env LIBRARY_PATH=/home/jdege/CalibreLibrary
env PORT=9980

setuid jdege
setgid jdege

script
    exec /usr/bin/calibre-server --port=$PORT --daemonize $LIBRARY_PATH
end script
jdege is offline   Reply With Quote
Advert
Old 11-25-2017, 07:50 PM   #3
jdege
Connoisseur
jdege began at the beginning.
 
Posts: 65
Karma: 10
Join Date: May 2011
Device: Samsung Tablet
Turns out the above almost works. The problem is that "sudo stop calibre-server" doesn't work.

The problem is the --daemonize argument, Remove it and everything works fine.
jdege is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with Unix shell script for my calibre-server Ersatzreifen Devices 5 07-07-2016 01:30 AM
Can't start calibre-server on Linux (ubuntu) Awfki Calibre 5 08-19-2015 10:54 PM
Calibre library getting deleted on linux server Zeros Calibre 3 09-10-2014 06:13 AM
Does anyone have a launchd script for calibre-server? offby1 Calibre 8 06-06-2014 08:04 AM
Linux Calibre Server zeener Calibre 2 12-04-2010 10:47 AM


All times are GMT -4. The time now is 12:36 AM.


MobileRead.com is a privately owned, operated and funded community.