gentoo-overlay/net-im/mautrix-signal-bin/files/mautrix-signal.service
Manuel Friedli cd3044f930
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing
Add mautrix-signal
2024-04-01 00:02:58 +02:00

35 lines
752 B
Desktop File

[Unit]
Description=mautrix-signal bridge
[Service]
Type=exec
User=mautrix-signal-bin
WorkingDirectory=/opt/mautrix-signal
ExecStart=/opt/mautrix-signal/mautrix-signal
Restart=on-failure
RestartSec=30s
# Optional hardening to improve security
ReadWritePaths=/opt/mautrix-signal
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