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

[Service]
User=mas
WorkingDirectory=/usr/share/matrix-authentication-service
ExecStart=/usr/bin/mas-cli server --migrate --no-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