View Single Post
Old 11-04-2016, 01:15 PM   #35
mcaron1234
Member
mcaron1234 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2009
Location: Washington
Device: Kindle Voyage
I am thinking of implementing your script on my Linux Mint 18 home server. I have setup calibre-server to run at startup with a systemd script:

Code:
[Unit]
Description=Calibre as a system service with webserver
After=network.target
AssertPathExists=/home/matt/mounts/ServerFolders/Books

[Service]
Type=forking
PIDFile=/var/run/calibre-server.pid
ExecStart=/usr/bin/calibre-server \
        --daemonize \
        --max-cover=1200x900 \
        --max-opds-items=30 \
        --max-opds-ungrouped-items=100 \
        --url-prefix /cops \
        --username=user \
        --password=password \
        --port=8080 \
        --pidfile=/var/run/calibre-server.pid \
        --with-library='/home/matt/mounts/ServerFolders/Books/Calibre Library Oden/'

[Install]
WantedBy=multi-user.target
Which runs at startup and is controlled with:
Code:
sudo systemctl [start|stop|restart|status] calibre@matt.service
Will your script work ok with this setup, ie will it be able to stop and start the server after it runs?
mcaron1234 is offline   Reply With Quote