03-24-2020, 10:41 PM | #1 |
Junior Member
Posts: 6
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. |
03-24-2020, 11:34 PM | #2 |
creator of calibre
Posts: 44,419
Karma: 24044628
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` |
Advert | |
|
03-25-2020, 11:46 AM | #3 |
Junior Member
Posts: 6
Karma: 10
Join Date: Nov 2014
Device: Kobo H2O
|
Thanks a lot, Kovid... I got it working!
Have a nice day! |
Tags |
command line, content server |
|
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 |