|
|
#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.
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,618
Karma: 28549044
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 | |
|
|
|
|
#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 03: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 08:50 PM |
| Stopping Calibre Server from Cmd Line? | phossler | Calibre | 5 | 09-27-2016 05:46 PM |
| Updating built-in recipes from command line on headless server? | khromov | Related Tools | 1 | 07-03-2012 02:47 PM |
| Calibre Server runs on command line, fails in GUI | gregoryx | Calibre | 0 | 08-21-2011 07:14 PM |