File mautrix-discord.service of Package mautrix-discord
[Unit] Description=mautrix-discord bridge StartLimitIntervalSec=120 StartLimitBurst=7 [Service] Type=exec User=mautrix-discord WorkingDirectory=/var/lib/mautrix-discord ExecStart=/usr/sbin/mautrix-discord -c /etc/mautrix-discord/config.yaml -r /etc/mautrix-discord/registration.yaml Restart=always RestartSec=10s # Optional hardening to improve security ReadWritePaths=/var/lib/mautrix-discord /etc/mautrix-discord /var/log/mautrix-discord NoNewPrivileges=yes MemoryDenyWriteExecute=true PrivateDevices=yes PrivateTmp=yes ProtectHome=yes ProtectSystem=strict ProtectControlGroups=true RestrictSUIDSGID=true RestrictRealtime=true LockPersonality=true ProtectKernelLogs=true ProtectKernelTunables=true ProtectHostname=true ProtectKernelModules=true PrivateUsers=true ProtectClock=true SystemCallArchitectures=native SystemCallErrorNumber=EPERM SystemCallFilter=@system-service [Install] WantedBy=multi-user.target