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 03-24-2020, 10:41 PM   #1
dcoulombe
Junior Member
dcoulombe began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2014
Device: Kobo H2O
Stopping Content server from command line

Hello,

I am running a book server on a Raspberry Pi 4. I am using the following line on CRONTAB to start the server on boot.

@reboot /usr/bin/calibre-server --access-log /home/pi/LOG/access.log --log /home/pi/LOG/oper.log --daemonize --port 8080

It works great so far, except when I want to stop the content server for maintenance or other stuff. I spend much time trying to find the command to STOP it, but could not find anything close. So the simple question is: how can I stop the content server from the command line appropriate for CALIBRE-SERVER ? As it stands now, I comment the startup line in crontab, and reboot to finally have access to calibre for maintenance... Somewhat of a pain!

Thanks for any help.
dcoulombe is offline   Reply With Quote
Old 03-24-2020, 11:34 PM   #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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Send it SIGINT or SIGTERM with the kill command just like you would for any daemon. Add the --pidfile option and use

kill `cat /path/to/pidfile`
kovidgoyal is online now   Reply With Quote
Old 03-25-2020, 11:46 AM   #3
dcoulombe
Junior Member
dcoulombe began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2014
Device: Kobo H2O
Thanks a lot, Kovid... I got it working!

Have a nice day!
dcoulombe is offline   Reply With Quote
Reply

Tags
command line, content server


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibredb does not work with content server running (content server is using --enable Irvin Server 3 01-08-2019 02:47 AM
Is there a way to execute a non-root command without access to command line Galunid Kindle Developer's Corner 4 05-15-2018 07:50 PM
Stopping Calibre Server from Cmd Line? phossler Calibre 5 09-27-2016 04:46 PM
Updating built-in recipes from command line on headless server? khromov Related Tools 1 07-03-2012 01:47 PM
Calibre Server runs on command line, fails in GUI gregoryx Calibre 0 08-21-2011 06:14 PM


All times are GMT -4. The time now is 09:46 AM.


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