aboutsummaryrefslogtreecommitdiff
path: root/roles/calibre/templates/cps.service.j2
blob: 005297daea1991861b6e6795ea2e437c2e4a2e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Calibre-Web

[Service]
Type=simple
User=calibre
{% if ssl == true %}
ExecStart=/usr/local/bin/cps -c '/etc/ssl/certs/{{ ansible_facts.fqdn }}.pem' -k '/etc/ssl/private/{{ ansible_facts.fqdn }}.key'
{% else %}
ExecStart=/usr/local/bin/cps
{% endif %}

[Install]
WantedBy=multi-user.target