![]() |
#1 |
Connoisseur
![]() 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? |
![]() |
![]() |
![]() |
#2 |
Connoisseur
![]() 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 |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() 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. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |