diff --git a/lawipac.com/etc/systemd/system/calibre-server.service b/lawipac.com/etc/systemd/system/calibre-server.service new file mode 100644 index 0000000..2a12dca --- /dev/null +++ b/lawipac.com/etc/systemd/system/calibre-server.service @@ -0,0 +1,15 @@ +[Unit] +Description=calibre content server +After=network.target + +[Service] +Type=simple +User=www-data +Group=www-data +ExecStart=/opt/calibre/calibre-server --listen-on 127.0.0.1 --shutdown-timeout 3 --url-prefix /books /var/www/MyBooks +##ExecStop=/opt/calibre/calibre-server --shutdown 1 "/var/www/MyBooks" +KillMode=process +TimeoutSec=900 + +[Install] +WantedBy=multi-user.target