Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 11-19-2020, 09:19 AM   #1
EightWeight
Enthusiast
EightWeight began at the beginning.
 
EightWeight's Avatar
 
Posts: 35
Karma: 12
Join Date: Dec 2011
Device: Kindle4, PW
How do I shut down server from cli?

I've set up a hotkey that runs "sudo systemctl start calibre-server" and it works well. BUT when I try to launch the Calibre GUI it refuses to launch with the error message:

calibre, version 5.5.0
ERROR: Cannot start calibre: Another calibre program that can modify calibre libraries, such as, calibre-server or calibredb is already running. You must first shut it down, before starting the main calibre program. If you are sure no such program is running, try restarting your computer.

So how do I shut it down? I've tried "sudo systemctl stop calibre-server", "sudo systemctl disable calibre-server", and a few others to no avail. The only thing that works is a reboot. That's unacceptable.

Geoff
EightWeight is offline   Reply With Quote
Old 11-19-2020, 11:28 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre doesnt come with a systemctl script, you would need to ask whoever created that. Or if you are planning to run the server and gui, simply use the server within the gui, that way you can actually have both running at the same time.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-20-2020, 07:32 AM   #3
EightWeight
Enthusiast
EightWeight began at the beginning.
 
EightWeight's Avatar
 
Posts: 35
Karma: 12
Join Date: Dec 2011
Device: Kindle4, PW
[Solved]

Kovid,

Solved it! This command will kill the server (and the GUI, if it's running):
kill $(ps aux | grep '[c]alibre*' | awk '{print $2}')

Geoff

Last edited by EightWeight; 11-20-2020 at 03:59 PM. Reason: typo
EightWeight is offline   Reply With Quote
Reply

Tags
calibre-server, systemctl


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Build a standalone server/cli dg3feh Server 3 04-25-2020 10:43 AM
Update calibredb and calibre-server on a CLI server dlfuller Devices 12 12-17-2017 06:52 PM
v3.0 has me shut down..... lmoore348 Sony Reader 1 09-06-2009 12:18 AM
Shut-down? scrappnjoyce Sony Reader 9 01-09-2009 11:12 AM


All times are GMT -4. The time now is 01:34 AM.


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