blob: 30c4bf881a2865829c630a8454a8c2a2eb74771e (
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
Environment=CLASS=leap.soledad.server.entrypoint.SoledadEntrypoint
Environment=HTTPS_PORT=2424
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 \
web \
--class=${CLASS} \
--port=ssl:${HTTPS_PORT}:privateKey=${PRIVKEY_PATH}:certKey=${CERT_PATH}:sslmethod=${SSL_METHOD}
WorkingDirectory=/var/lib/soledad/
User=soledad
Group=soledad
Restart=always
[Install]
WantedBy=multi-user.target
|