gentoo-overlay/net-im/mautrix-whatsapp-bin/files/mautrix-whatsapp.service

36 lines
764 B
SYSTEMD
Raw Normal View History

2024-04-02 23:35:43 +02:00
[Unit]
2024-04-26 14:51:38 +02:00
Description=mautrix-whatsapp bridge
2024-04-02 23:35:43 +02:00
[Service]
Type=exec
2024-04-26 15:28:44 +02:00
User=mautrix-whatsapp-bin
WorkingDirectory=/opt/mautrix-whatsapp
ExecStart=/opt/mautrix-whatsapp/mautrix-whatsapp
2024-04-02 23:35:43 +02:00
Restart=on-failure
RestartSec=30s
# Optional hardening to improve security
2024-04-26 15:28:44 +02:00
ReadWritePaths=/opt/mautrix-whatsapp
2024-04-02 23:35:43 +02:00
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