From 9773140a89ca3175b42cca602a393f9f55d034ae Mon Sep 17 00:00:00 2001 From: Gitea Date: Sat, 9 May 2020 23:38:57 +1000 Subject: [PATCH] lawipac calibre library service --- .../etc/systemd/system/calibre-server.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lawipac.com/etc/systemd/system/calibre-server.service 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