summaryrefslogtreecommitdiff
path: root/pkg/server/soledad-server.service
blob: 0e17f24566961170cdb8082eec08f289c888fdb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[Unit]
Description=Soledad Server

[Service]
Environment=PATH=/sbin:/bin:/usr/sbin:/usr/bin
# TODO: Change this dist-packages path as it's Debian specific
Environment=TAC=/usr/lib/python2.7/dist-packages/leap/soledad/server/server.tac
Environment=HTTPS_PORT=2424
Environment=LOCAL_SERVICES_PORT=2525
Environment=CERT_PATH=/etc/soledad/soledad-server.pem
Environment=PRIVKEY_PATH=/etc/soledad/soledad-server.key
Environment=HOME=/var/lib/soledad/
Environment=SSL_METHOD=SSLv23_METHOD
EnvironmentFile=-/etc/default/soledad

ExecStart=/usr/bin/twistd \
  --nodaemon \
  --pidfile= \
  --syslog \
  --prefix=soledad-server \
  --python=${TAC}

WorkingDirectory=/var/lib/soledad/

User=soledad
Group=soledad

Restart=always

[Install]
WantedBy=multi-user.target