summarylogtreecommitdiffstats
path: root/systemd-worker.service
blob: 448a1340799dd2d72790019dda25f4b0ead7a67f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=Matrix authentication service worker
After=network.target

[Service]
User=mas
Environment=HOME=/var/lib/matrix-authentication-service
WorkingDirectory=/usr/share/matrix-authentication-service
ExecStart=/usr/bin/mas-cli worker -c /etc/matrix-authentication-service/config.yaml
Restart=on-failure

# Hardening
ProtectSystem=yes
PrivateTmp=true
MemoryDenyWriteExecute=true
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target