07-02-2017, 09:16 PM | #1 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jul 2017
Device: Kobo Aura H2O
|
Calibre 3 as service auto start on Windows
Hi,
With Calibre 2.x I had a small script that made me access to my library from the Web by running Calibre server as a service and it was starting with Windows. It's no longer working with Calibre 3.x. I can access my library when Calibre is running on my computer but not when it's closed. I'm not very good in coding, don't understand everything I code but I'm not so bad with cut and paste :-) Any help will be appreciate Last edited by BigRobert; 07-02-2017 at 09:18 PM. |
07-02-2017, 11:44 PM | #2 |
creator of calibre
Posts: 44,779
Karma: 25490594
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Since the syntax (options and arguments) of the calibre-server command has changed completely, you simply need to update your script to use the new syntax. If you cannpt figure out how to fo that yourself, post it here and hopefully someone will help.
|
Advert | |
|
07-03-2017, 08:35 AM | #3 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jul 2017
Device: Kobo Aura H2O
|
Wow, didn't expect that M. Goyal himself will answer to my post
Here's what I did to create my service in Windows. I use a program "winserv.exe" to create a service, with the '-start auto' option, the new service will always start on reboot winserv.exe install ServeurCalibre -displayname "MyOwnCalibreServer" -description "Calibre Server to give access from web to my Calibre library" -start auto "C:\Program Files\Calibre2\calibre-server.exe" --port 8080 --username "xxxxxx" --with-library="C:\path to my library". To kill the service: sc delete MyOwnCalibreServer That was working great with the Calibre 2.x version, hoping someone will post the syntax for the new Calibre 3.x |
07-03-2017, 08:44 AM | #4 |
creator of calibre
Posts: 44,779
Karma: 25490594
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
--username and --with-library no longer exist. See https://manual.calibre-ebook.com/gen...re-server.html
|
07-03-2017, 07:42 PM | #5 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jul 2017
Device: Kobo Aura H2O
|
Works great now with this string:
winserv.exe install ServeurCalibre -displayname "MyOwnCalibreServer" -description "Calibre Server to give access from web to my Calibre library" -start auto "C:\Program Files\Calibre2\calibre-server.exe" --port 8080 "C:\path to my library" Thanks M. Goyal |
Advert | |
|
07-04-2017, 08:31 AM | #6 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jul 2017
Device: Kobo Aura H2O
|
Still have a problem.
When I start server with this command, the database do not update. If I access from the web when Calibre is open on my pc, everything is fine. But as soon as I close it, I'm back to the old version. The only way to have an up to date db is to stop and restart the service. Very strange. I don't know if it happened with Calibre 2.x |
07-04-2017, 08:39 AM | #7 |
creator of calibre
Posts: 44,779
Karma: 25490594
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You should not run the server and the GUI on the same library, because the server can also modify the library. So create a script that stops the server before launching the GUI and starts it after the GUI shutsdown and use that to run the GUI.
|
07-04-2017, 12:12 PM | #8 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jul 2017
Device: Kobo Aura H2O
|
No idea how to do that, but thanks any away
|
07-04-2017, 01:25 PM | #9 |
creator of calibre
Posts: 44,779
Karma: 25490594
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I suggest you just have the GUI run the content server on startup and enable the system tray icon in Preferences->Look & feel. Then tell windows to run calibre on startup with the --start-intray option.
That way you dont have to worry about running the server as a service. |
07-04-2017, 04:14 PM | #10 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jul 2017
Device: Kobo Aura H2O
|
Enable the system tray icon in Preferences->Look & feel.
A small batch file like this: start Calibre --start-in-tray exit /b Put in the windows startup directory. (Open with Run then Shell:startup) Perfect With bonus, you could manage users and passwords from the Calibre's GUI interface I can't guess it was so simple Thanks again for your help M. Koyal |
03-18-2018, 03:37 PM | #11 | |
Member
Posts: 17
Karma: 10
Join Date: Jun 2017
Device: Android
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to start Calibre on Windows in debug mode | hakan42 | Development | 9 | 04-10-2024 06:34 PM |
Calibre Editor generates Windows Navigation Start.wav sound | u238110 | Calibre | 10 | 08-05-2014 02:45 AM |
Windows Indexing Service and Calibre Performance | Giuseppe Chillem | Calibre | 8 | 04-09-2013 07:01 PM |
windows 7 +calibre - 2 start methods - 2 speeds ? | cybmole | Calibre | 4 | 01-21-2011 05:58 AM |
Can't start Calibre in Windows | Robotech_Master | Calibre | 18 | 12-23-2008 02:35 PM |