2020-05-31 22:49:07 +02:00
|
|
|
[Unit]
|
2024-02-21 05:06:18 +01:00
|
|
|
Description=conduwuit Matrix homeserver
|
2024-02-10 02:23:18 +01:00
|
|
|
After=network-online.target
|
2020-05-31 22:49:07 +02:00
|
|
|
|
|
|
|
[Service]
|
2022-05-10 09:26:19 +02:00
|
|
|
DynamicUser=yes
|
2024-04-25 06:09:50 +02:00
|
|
|
User=_conduwuit
|
|
|
|
Group=_conduwuit
|
2024-02-10 02:23:18 +01:00
|
|
|
Type=notify
|
2020-05-31 22:49:07 +02:00
|
|
|
|
2020-11-13 21:37:22 +01:00
|
|
|
AmbientCapabilities=
|
|
|
|
CapabilityBoundingSet=
|
2024-02-10 02:23:18 +01:00
|
|
|
|
|
|
|
DevicePolicy=closed
|
2020-11-13 21:37:22 +01:00
|
|
|
LockPersonality=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
NoNewPrivileges=yes
|
2024-02-10 02:23:18 +01:00
|
|
|
ProcSubset=pid
|
2020-11-13 21:37:22 +01:00
|
|
|
ProtectClock=yes
|
|
|
|
ProtectControlGroups=yes
|
|
|
|
ProtectHome=yes
|
|
|
|
ProtectHostname=yes
|
|
|
|
ProtectKernelLogs=yes
|
|
|
|
ProtectKernelModules=yes
|
|
|
|
ProtectKernelTunables=yes
|
2024-02-10 02:23:18 +01:00
|
|
|
ProtectProc=invisible
|
2020-11-13 21:37:22 +01:00
|
|
|
ProtectSystem=strict
|
|
|
|
PrivateDevices=yes
|
|
|
|
PrivateMounts=yes
|
|
|
|
PrivateTmp=yes
|
|
|
|
PrivateUsers=yes
|
2024-02-10 02:23:18 +01:00
|
|
|
PrivateIPC=yes
|
2020-11-13 21:37:22 +01:00
|
|
|
RemoveIPC=yes
|
2024-02-10 02:23:18 +01:00
|
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
2020-11-13 21:37:22 +01:00
|
|
|
RestrictNamespaces=yes
|
|
|
|
RestrictRealtime=yes
|
|
|
|
RestrictSUIDSGID=yes
|
|
|
|
SystemCallArchitectures=native
|
|
|
|
SystemCallFilter=@system-service
|
2024-02-10 02:23:18 +01:00
|
|
|
SystemCallFilter=~@clock @debug @module @mount @reboot @swap @cpu-emulation @obsolete @timer @chown @setuid @resources @privileged @keyring @ipc
|
2020-11-13 21:37:22 +01:00
|
|
|
SystemCallErrorNumber=EPERM
|
|
|
|
StateDirectory=matrix-conduit
|
|
|
|
|
2024-02-10 02:23:18 +01:00
|
|
|
RuntimeDirectory=conduit
|
|
|
|
RuntimeDirectoryMode=0750
|
|
|
|
|
2024-04-25 06:09:50 +02:00
|
|
|
Environment="CONDUIT_CONFIG=/etc/conduwuit/conduwuit.toml"
|
2020-05-31 22:49:07 +02:00
|
|
|
|
2024-04-25 06:09:50 +02:00
|
|
|
ExecStart=/usr/sbin/conduwuit
|
2020-05-31 22:49:07 +02:00
|
|
|
Restart=on-failure
|
2024-02-10 02:23:18 +01:00
|
|
|
RestartSec=5
|
|
|
|
|
2024-02-21 05:06:18 +01:00
|
|
|
TimeoutStopSec=4m
|
|
|
|
TimeoutStartSec=4m
|
|
|
|
|
2020-05-31 22:49:07 +02:00
|
|
|
StartLimitInterval=1m
|
|
|
|
StartLimitBurst=5
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|