Files
infrastructure/roles/matrix/files/draupnir.service
Jan Alexander Steffens (heftig) af9f9d23fb Reapply "matrix: Update draupnir to v3.0.0"
Try this again. The crash may have been a fluke.

This reverts commit a95643d665.
2026-04-29 01:49:47 +02:00

38 lines
888 B
SYSTEMD

[Unit]
Description=Draupnir Matrix moderation tool
Wants=synapse.service
After=network.target synapse.service
[Service]
ExecStart=/var/lib/synapse/draupnir/draupnir-entrypoint.sh bot --draupnir-config /etc/synapse/draupnir.yaml
WorkingDirectory=/var/lib/synapse/draupnir
Restart=always
User=synapse
Environment=NODE_ENV=production
SyslogIdentifier=draupnir
ReadWritePaths=/var/lib/synapse/draupnir-data
NoNewPrivileges=yes
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
# vim:set ft=systemd sw=2 sts=-1 et: