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