[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