summarylogtreecommitdiffstats
path: root/matrix2051.service
blob: 0bb7285c1ceedcde9f7f89cfff2b39a5bac99b68 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[Unit]
Description=A Matrix gateway for IRC, join from your favorite IRC client
After=network.target
Wants=network.target

[Service]
Type=simple
User=matrix2051
Group=matrix2051
DynamicUser=true
SyslogIdentifier=matrix2051
StateDirectory=matrix2051
RuntimeDirectory=matrix2051
ExecStart=/usr/lib/matrix2051/bin/matrix2051 start
ExecStop=/usr/lib/matrix2051/bin/matrix2051 stop
Environment=LC_ALL=en_US.UTF-8
Environment=HOME=/var/lib/matrix2051
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictRealtime=true
Restart=always
RestartSec=10
CapabilityBoundingSet=
AmbientCapabilities=
NoNewPrivileges=true
#SecureBits=
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
PrivateNetwork=false
PrivateUsers=true
ProtectHostname=true
ProtectClock=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictNamespaces=true
LockPersonality=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallFilter=@system-service
SystemCallArchitectures=native


[Install]
WantedBy=multi-user.target